tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Olivier <>
Subject OutOfMemoryError: unable to create new native thread
Date Thu, 28 Oct 2004 10:07:01 GMT

I am periodically having to restart a normally very stable tomcat 5 instance
due to:

OutOfMemoryError:  unable to create new native thread

Now, as far as I understand the following are the reasons for this:

- Actually ran out of memory
- Hit max # of threads allowed to run (OS dependant?)
- Ran out of file handles - File handles include open files AND sockets
- (?) Your JVM is bigger than the max process size allowed
- Other things I don't know

Does anyone have any tips on how to track this sucker down?

The OS is Windows 2000 Server
Tomcat 5.0.27

How do you increase the max thread count at an OS level?

Tomcat seems fine as the heap is never huge at the time of the memory (in
fact only 40% MAX utilisation)?

Thanks in advance!


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

View raw message