[jetty-user] Default QueuedThreadPool configuration
2009-11-02 11:38:51 GMT
I was experimenting with the default QueuedThreadPool configuration in jetty.xml in particular the behaviour of SpawnOrShrink <Set name="SpawnOrShrinkAt">2</Set> What I found was that with a default > 0 and a single browser loading multiple files I would experience occasional pauses of upto 30 seconds. Using jconsole and the mbean interface to jetty I tracked this back to the behaviour/configuration of the ThreadPool. When all the currently created threads in the ThreadPool where allocated (or waiting for the idle period to expire) a new request would be queued until a new thread becomes available even if the ThreadPool was nowhere near its maxThreads ie it could create more threads. Can somebody explain the rational here for setting SpawnOrShrink and maxIdleTimeMs and suggest a better set of defaults. Thanks Jon -- -- Emnico Developing EmNOC for Managing IT Networks - www.emnico.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email(Continue reading)
RSS Feed