We're using Glassfish 3.0.1 and experiencing very long response times; in the order of 5 minutes for 25% of our POST/PUT requests, by the time the response comes back the front facing load balancer has timed out.

My theory is that the requests are queuing up and waiting for an available thread.

The reason I think this is because the access logs reveal that the requests are taking a few seconds to complete however the time at which the requests are being executed are five minutes later than I'd expect.

Does anyone have any advice for debugging what is going on with the thread pools? or what the optimum settings should be for them?

Is it required to do a thread dump periodically or will a one off dump be sufficient?

Edit
Report