Java Memory error: unable to create new native thread
问题 I get this error on my UNIX server, when running my java server: Exception in thread "Thread-0" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at [... where ever I launch a new Thread ...] It happens everytime I have about 600 threads running. I have set up this variable on the server: $> ulimit -s 128 What looks strange to me is the result of this command, which I ran when the bug occured the