[PJUG Javamail] What causes "Too many open files" in Tomcat
Rob Tanner
rtanner at linfield.edu
Tue Nov 3 19:01:16 EST 2009
I thought about that but the problem isn¹t system wide. But thanks because
you¹ve just reminded me that ulimit is shell specific although the default
of 1024 should certainly be sufficient. I¹ve modified the catalina.sh start
up script to set ulimit to 4096 (ulimit n 4096). That¹s definitely
overkill and if ulimit was the problem, I shouldn¹t see that error again.
I¹ll just need to keep an eye out.
Again thanks,
Rob
On 11/3/09 3:25 PM, "Chris Foster" <cjafoster at gmail.com> wrote:
> 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/log4
>>> j.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/ <http://www.pjug.org/>
>> Javamail mailing list
>> Javamail at pjug.org
>> http://www.pjug.org/mailman/listinfo/javamail
>
>
> _______________________________________________
> 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/4dfeaa7c/attachment.html
More information about the Javamail
mailing list