![]() In my case Jboss is creating too many threads, to serve the request, but all the threads are blocked. ![]() JVMTI_RESOURCE_EXHAUSTED_OOM_ERROR (resources exhausted (means memoryĮxhausted) ) or JVMTI_RESOURCE_EXHAUSTED_THREADS (Threads exhausted). ![]() Root cause : JVM throws this exception when Below is the JVM source code if (native_thread->osthread() = NULL) THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), "unable to create new native thread") I encountered same issue during the load test, the reason is because of JVM is unable to create a new Java thread further. We have tried editing /etc/security/nf and ulimit but still that same ~]# ulimit -a The script we use to run application is /opt/jrockit-jdk1.6/bin/java -Xms512m -Xmx512m -Xss128k -jar JavaNatSimulator.jar /opt/tools/jnatclients/natSimulator.properties We also tried OS stack size (ulimit -s) tweaking and max process(ulimit -u) limits, nf increase but all in vain.Īlso we tried almost all possible of heap size combinations, keeping it low, high etc. JDk is 64 bit and tried with both HotSpot and JRockit.Server has Linux 2.6.18 ![]() ![]() However, "top" and "free -m" shows 50% free memory available. We are getting " : unable to create new native Thread" on 8GB RAM VM after 32k threads (ps -eLF| grep -c java) ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |