1833596 Members
3375 Online
110061 Solutions
New Discussion

thread limits - Java VM

 
SOLVED
Go to solution
Sivaji
Occasional Contributor

thread limits - Java VM

Hello

Our application is setup on Apache, Jserv and Tomcat. Sometimes system hung ups and following is the error message written to log file.
------------------
java.lang.OutOfMemoryError: max threads limit being reached in VM
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.service.SimpleTcpEndpoint.processSocket(SimpleTcpEndpoint.
java:239)
at
org.apache.tomcat.service.SimpleTcpEndpoint.acceptConnections(SimpleTcpEndpo
int.java:250)
at
org.apache.tomcat.service.TcpListenerThread.run(SimpleTcpEndpoint.java:319)
at java.lang.Thread.run(Unknown Source)
Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] shutdown
due to exception: java.lang.OutOfMemoryError: max threads
limit being reached in VM
----------------

This server is accessed by more than 60 users.

If anyone had experienced this problem and resolved it, please write to me about the solution.

Regards
Sivaji



1 REPLY 1
Steven Gillard_2
Honored Contributor
Solution

Re: thread limits - Java VM

You may have reached the max_thread_proc kernel parameter limit on the number of threads per process. Try increasing this value, because usually the default of 256 is too small for heavily threaded applications.

Regards,
Steve