Hi Jan, On 2 February 2011 06:41, Olaf Tomczak <olaf.tomc...@gmail.com> wrote: > Jan, > > The limit of open files on linux/unix systems for normal users may be > quite low by default (for example 1024). From my experience, this may > lead to "Too many open files" errors during high load even if your > application is working fine. Try increasing this limit, also check > your application as Chuck suggested.
Just in case you aren't sure of how to do this on RHEL5 edit: /etc/security/limits.conf You'll want to add a line similar to (assuming 'tomcat' is the user running tomcat): tomcat hard nofile 4096 tomcat soft nofile 4096 Adjust the number (4096) as necessary. > > -- > Olaf > > 2011/2/2 jan gestre <ipcopper...@gmail.com>: >> On Wed, Feb 2, 2011 at 6:26 AM, Caldarale, Charles R >> <chuck.caldar...@unisys.com> wrote: >>>> From: jan gestre [mailto:ipcopper...@gmail.com] >>>> Subject: Re: Optimize CPU Hogging Tomcat 6 >>> >>>> Here's a snippet of the thread dump using jstack: >>> >>> Nothing there of any interest; all the ones you showed weren't running and >>> were therefore not contributing to the CPU usage. >>> >>>> Also, here's my catalina log: >>> >>>> Feb 1, 2011 10:19:04 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run >>>> SEVERE: Socket accept failed >>>> java.net.SocketException: Too many open files >>> >>> That looks like something you should take care of... >>> >>> Is your webapp opening files (or sockets) and failing to close them? >>> Running out of fd numbers will normally be fatal, and is almost always due >>> to bugs in a webapp. >>> >>> What's your exact Tomcat version, JDK/JRE level, and platform? >>> >> >> hi chuck, >> >> Tomcat's version is 6.0.29, Sun Java JDK 1.6.0_21 and RHEL5, webapp is >> Alfresco. >> >> Regards, >> >> Jan >> -- Best Regards, Brett Delle Grazie --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org