Mantis - Resin
Viewing Issue Advanced Details
136 minor always 05-04-05 00:00 05-11-05 00:00
user156  
 
normal  
closed  
fixed  
none    
none 3.0.13  
0000136: Resin JVM crash when open file handles to cache.db exceed ulimit
RSN-127
After several (5 to 20) days of continuous operation, Resin hangs. An lsof yields hundreds (Note: 0000900) of entries like:

java 13218 user 70u REG 0,10 14548992 3189398 /shared/instance/app/resin/cache/cache.db (172.16.4.68:/vol/vol0/home)

The ulimit on this machine is 1024. Web-apps running on this server begin to fail when attempting to open new file IO streams with exceptions like:

java.io.FileNotFoundException: /usr/local/path/resin/app1/filename (Too many open files)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
Resin 3.0.10, JDK 1.4.2_04, Red Hat Enterprise Linux ES release 3 (Taroon Update 3)

Notes
(0000163)
user156   
05-04-05 00:00   
The title of this bug is erroneous. Resin becomes unresponsive but JVM does not completely fail.

Some more info: The resin.conf contains the following for cache config.:

<cache path="cache" memory-size="10M"/>
(0000164)
user156   
05-04-05 00:00   
Sorry, another detail: Resin PROFESSIONAL 3.0.10