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.
- Thanks for you response i have edited the question and i have also mentioned the connector configuration details done in server.xmlRohitesh– Rohitesh2015-02-19 13:20:17 +00:00Commented 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.Daniel Mikusa– Daniel Mikusa2015-02-19 13:41:27 +00:00Commented 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.Daniel Mikusa– Daniel Mikusa2015-02-19 13:44:56 +00:00Commented 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.Rohitesh– Rohitesh2015-02-19 17:33:08 +00:00Commented 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 aboveDaniel Mikusa– Daniel Mikusa2015-02-19 22:10:16 +00:00Commented Feb 19, 2015 at 22:10
| Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-java