What are the non-obvious causes of OutOfMemoryError: cannot create new native thread?
This is happening quite a bit on my Tomcat cluster (linux + sun jdk1.4.1_01 + jboss/tomcat 4.0.4, no ejbs) under load, but the actual thread count (by either ps or the thread dump) is relatively low, often less than 200. In the last thread dump, about half the Ajp13Processors were runnable in socketRead0(), and half were in wait mode like this: "Ajp13Processor[8009][125]" daemon prio=1 tid=0x0x8cd0b10 nid=0x374e in Object.wait() [78680000..78680840] at java.lang.Object.wait(Native Method) - waiting on <0x47fdfb68> (a org.apache.ajp.tomcat4.Ajp13Processor) at java.lang.Object.wait(Object.java:426) at org.apache.ajp.tomcat4.Ajp13Processor.await(Ajp13Processor.java:316) - locked <0x47fdfb68> (a org.apache.ajp.tomcat4.Ajp13Processor) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:542) at java.lang.Thread.run(Thread.java:536) Can anyone speculate on what might be wrong? I've checked, and just spawning threads my test went up to almost 1000 threads before complaining. It doesn't seem like I should run into problems at 200 threads. Thanks in advance, Jeff Schnitzer [EMAIL PROTECTED] The Sims Online -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>