Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Thanks for you response i have edited the question and i have also mentioned the connector configuration details done in server.xml Commented Feb 19, 2015 at 13:20
  • That's helpful. You're definitely hitting maxThreads, which you set to 750 on your Connector. It won't help with the OOME, in fact it'll probably make that more likely to occur, but increasing maxThreads would allow you to go past 750 threads in the pool. Again, that won't help unless you have the memory to do so. See my suggestions above for handling that. Commented Feb 19, 2015 at 13:41
  • Oh, you're also using the BIO connector. NIO or APR might help reduce the number of threads required. How much, depends on your workload. Lots of IO, you'll see more benefit; lots of app processing or CPU intensive tasks, then probably not. Either way, if you have a test environment I'd suggest giving it a shot to see what happens. Commented Feb 19, 2015 at 13:44
  • so you are suggesting me to change the thread stack size with the -Xss argument to the JVM . But, in my test environment i am not getting this error so i am stuck how to proceed further. Will thread dump will he helpful in this case. Commented Feb 19, 2015 at 17:33
  • I can't tell you what will work here, I don't know enough about your apps and your environment. My suggestions above are things that you can try and that might help to address the problem. Ultimately you need to investigate further and test to find the solution. You have a dev environment, which is good. Try throwing some load against that environment and see if you can replicate the problem. If that fails, try to make the problem worse by increasing the stack size or lowering the memory in your dev environment, that might make it easier to replicate. Then you can try the solutions above Commented Feb 19, 2015 at 22:10