users@glassfish.java.net

Re: Glassfish/Grizzly freezes when simu requests exceeds req processing threads

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jun 2010 13:21:45 PDT

Is this glassfish 3?

I would suggest using different thread pools for the different listeners.

We have a number of applications that are similar: lots of concurrent requests (>100/second) to one listener (80), each of those needs to make a request to another webservice at a different port. If you assign the same threadpool to both listeners, you can easily get blocked as requests to the first are waiting for a connection to the second, but the maximum amount in the threadpool is reached (all threads occupied by the first listener, nothing available for the second listener)

We run more than 100 requests per second, with 2 threadpools of 8 max threads each.

Not sure this answers your question, but I hope it does help.

- Johan
[Message sent by forum member 'johanvos']

http://forums.java.net/jive/thread.jspa?messageID=475586