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:
Java .bat start up args:
-Xoptimize -Xmx8G -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -server
System info:
Please note that I'm asking about how to increase thread limit, not how to improve java app performance.