0

I'm running a java application on windows 2012. I'm wondering to know that is there any thread limitation setting on windows server? My java app console throws error message "out-of-memory unable to create new native thread" and somthing crashs onec the thread amount hits around 2000. No matter how I increased my RAM and virtual memory, the error still happends.

Everything works good if the thread amount below 2000: CPU INFO

Java .bat start up args:

-Xoptimize -Xmx8G -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -server

System info:

enter image description here

enter image description here

Please note that I'm asking about how to increase thread limit, not how to improve java app performance.

david0116
  • 69
  • 1
  • 10
  • Possible duplicate of ["java.lang.OutOfMemoryError : unable to create new native Thread"](https://stackoverflow.com/questions/16789288/java-lang-outofmemoryerror-unable-to-create-new-native-thread) – Progman Sep 06 '18 at 09:20
  • Yeah, I knew that there is a thread limit setting on linux. But, I'm using windows. I have no idea why my java app throws the error message at around 2000 threads. I'm just wondering to know that how to increase the thread limit amout. – david0116 Sep 07 '18 at 06:27
  • I've been searching the solution for weeks. Window 64 bit thread limit depends on RAM size. I've increased my RAM from 8G to 18G, but still crashs at around 2000 threads. – david0116 Sep 07 '18 at 06:31

0 Answers0