“java.lang.OutOfMemoryError : unable to create new native Thread”

We are getting “java.lang.OutOfMemoryError : unable to create new native Thread” on 8GB RAM VM after 32k threads (ps -eLF| grep -c java) However, “top” and “free -m” shows 50% free memory available. JDk is 64 bit and tried with both HotSpot and JRockit.Server has Linux 2.6.18 We also tried OS stack size (ulimit -s) tweaking and max process(ulimit … Read more