On 20/10/2010 09:15, rujin raj wrote: > Hi all, > > In my tomcat application server frequently i am getting the java out of > memory error. > > *Error:* > 20 Oct, 2010 1:09:41 PM > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run > SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new > native thread) executing > org.apache.tomcat.util.net.leaderfollowerworkerthr...@d3e5cc, terminating > thread > > > *Server.Xml Config:* > > *http-443* > Current thread count: 1000 > Current threads busy: 923 > Max threads: 5000 > Max spare threads: 1175 > Min spare threads: 500 > Max time (ms): 156766 > Processing time (ms): 63838188 > Request count: 13233 > Error count: 789 > Received: 392Kb Sent: 81Mb > > Is this configuration is normal or any modification required to work the > application proper??
5000 threads might be a little excessive, depending on what your application is doing and how much memory a thread consumes versus how much resource the physical machine has. 789 errors for only 81Mb sent seems a little high. Are you load testing or is this in production? How much memory does the machine have? How much is allocated to Tomcat? What operating system is it? p > Tomcat Version:Apache Tomcat 5.5.20 > Java JRE 1.6.0 > > Regards > rujinraj >
0x62590808.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature