[PJUG Javamail] What causes "Too many open files" in Tomcat
Chris Foster
cjafoster at gmail.com
Tue Nov 3 18:25:06 EST 2009
Check your ulimit. Chances are the Linux (or unix) file limit is too low.
- Chris
On Nov 3, 2009, at 2:53 PM, Rob Tanner <rtanner at linfield.edu> wrote:
Hi,
I’m getting messages like these in the catalina.out log:
java.net.SocketException: Too many open files
java.io.FileNotFoundException: /usr/dict/wordlist.pwd (Too many open files)
java.io.FileNotFoundException:
/var/apache/apache-tomcat-5.5.23/webapps/AccountManager/WEB-INF/classes/log4j.properties
(Too many open files)
java.net.SocketException: Too many open files
And, of course, I have to stop and restart Tomcat to get it to work again.
This is not a system error; it’s only in Tomcat. I did some googling and
found a suggestion with regard to Java arguments when Tomcat starts up.
These are the options I’m starting Tomcat with: '-XX:NewSize=128m
-XX:MaxNewSize=128m -XX:SurvivorRatio=8 -Xms256m -Xmx512m'
I’ve also gone through the most active apps and made sure that I was not
leaving any database or LDAP connections open.
Any ideas?
Thanks,
Rob
*Rob Tanner
*JAVA Developer
Linfield College, McMinnville Oregon
_______________________________________________
Web Site - http://www.pjug.org/
Javamail mailing list
Javamail at pjug.org
http://www.pjug.org/mailman/listinfo/javamail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20091103/382a511a/attachment.html
More information about the Javamail
mailing list