tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schnitzer, Jeff" <>
Subject OutOfMemoryError: cannot create new native thread
Date Thu, 05 Dec 2002 09:24:13 GMT
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
        at java.lang.Object.wait(
        - locked <0x47fdfb68> (a org.apache.ajp.tomcat4.Ajp13Processor)

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

Thanks in advance,
Jeff Schnitzer
The Sims Online

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message