java.lang.OutOfMemoryError on ec2 machine

Posted by vinchan on Server Fault See other posts from Server Fault or by vinchan
Published on 2012-02-02T00:08:32Z Indexed on 2012/03/24 5:32 UTC
Read the original article Hit count: 513

Filed under:
|

I have a java app on a large instance that will spawn up to 800 threads. I can run the application fine as user "root" but not as another user which I created. I get the deadly.

java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:657)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:943)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1325)

nightmare. I have tried increasing the stack size already in limits.conf to no avail. Please, help me out. What is different here for the root and other user?

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about java