889083 wrote:The problem has nothing to do with memory stop looking at memory related JVM settings. The operating system simply doesn't allow you to create more threads. You will simply need to reduce the number of threads created (or make sure they actually finish).
thanks you for help me
I have tested the threads´ number and it´s round 500 or 700 in the worst case.
In more tests, I have changed the JVM options, I have used diferent memory params (Xms, Xmx and Xss) but I have the same problem.
Maybe I have to use Xmn, XX:PermSize and XX:MaxPermSize but I don´t know what happen when a thread calls native libraries (they are C libraries ) if the JVM loads the libraries everytime (600 threads -> 600 loads) or if it use the same reference for everyone