[PJUG Javamail] What causes "Too many open files" in Tomcat

Rob Tanner rtanner at linfield.edu
Tue Nov 3 17:53:24 EST 2009


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20091103/40a8dc5d/attachment.html 


More information about the Javamail mailing list