Your code is probably leaking file/socket descriptors somewhere, leaving it
to the garbage collector to free them up eventually. There are some good
tips on how to hunt down this kind of problem at
http://stackoverflow.com/a/4194709/566556

-Knut


On Tue, Feb 7, 2012 at 13:54, Scott Ferguson <f...@caucho.com> wrote:

> **
> On 02/07/2012 12:12 PM, Manidhar gudavalli wrote:
>
>
> I have these settings in my conf  files for ulimits.
>
> vi /etc/security/limits.conf
>
> * soft nofiles 1024000
> * hard nofiles 1024000
>
> root    soft    nofiles 1024000
> root    hard    nofiles 1024000
>
>
> Does the lsof show anything unusual? Like a surprising number of open
> descriptors to a specific file or socket?
>
> -- Scott
>
>
>
>  cat /proc/sys/fs/file-max
> 2188737
>
>
> On Tue, Feb 7, 2012 at 12:56 PM, Manidhar gudavalli <mani...@gmail.com>wrote:
>
>> I checked with lsof -u root | wc -l and for login id and for mysql. All
>> are with in the limits less than 2400 . And, I set the limits too high at
>> 100,000.
>> thanks
>> Mani
>>
>> On Tue, Feb 7, 2012 at 12:51 PM, Knut Forkalsrud <
>> knut-cau...@forkalsrud.org> wrote:
>>
>>> You have too many open files.  Try "man ulimit" and "man lsof".
>>>
>>>  -Knut
>>>
>>>
>>>  On Tue, Feb 7, 2012 at 10:17, Manidhar gudavalli <mani...@gmail.com>wrote:
>>>
>>>>  We are using resin 3.1.12 and java 6.  When the server is on heavy
>>>> load, we are getting frequent errors. Number of open files count is still
>>>> less. But we are seeing these errors. What could be the problem? There are
>>>> no memory issues.
>>>>
>>>> java.util.zip.ZipException: error in opening zip file
>>>> java.io.FileNotFoundException: /home/myuser/public_html/WEB-INF/web.xml
>>>> (Too many open files)
>>>>
>>>> java.lang.NoClassDefFoundError
>>>>
>>>> java.sql.SQLException: Unable to connect to any hosts due to exception:
>>>> java.net.SocketException: Too many open files
>>>>
>>>> ** BEGIN NESTED EXCEPTION **
>>>>
>>>> java.net.SocketException
>>>> MESSAGE: Too many open files
>>>>
>>>> thanks in advance
>>>> Mani
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>  _______________________________________________
>>>> resin-interest mailing list
>>>> resin-interest@caucho.com
>>>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>>>
>>>>
>>>
>>> _______________________________________________
>>> resin-interest mailing list
>>> resin-interest@caucho.com
>>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>>
>>>
>>
>>
>>
>>
>
>
> --
> Dr. Mani Gudavalli
> http://www.softschools.com
> 214 636 5824
>
>
> _______________________________________________
> resin-interest mailing 
> listresin-interest@caucho.comhttp://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to