We get "java.lang.OutOfMemoryError : unable to create new native Thread " on 8 GB of RAM RAM after 32k threads (ps -eLF | grep -c java)
However, "top" and "free -m" shows 50% free memory available . JDk has a 64-bit version and works with both HotSpot and JRockit.Server with Linux 2.6.18
We also tried OS stack size (ulimit -s) settings and max process (ulimit -u), limit.conf, but all in vain.
We also tried almost all possible combinations of heap sizes, keeping it low, high, etc.
script that we use to run the application,
/opt/jrockit-jdk1.6/bin/java -Xms512m -Xmx512m -Xss128k -jar JavaNatSimulator.jar /opt/tools/jnatclients/natSimulator.properties
Thanks for the answer.
We tried to edit /etc/security/limits.conf and ulimit, but still the same
[root@jboss02 ~]
java out-of-memory
Deepak Tewani May 28 '13 at 10:04 2013-05-28 10:04
source share