https://defect.opensolaris.org/bz/show_bug.cgi?id=17127

           Summary: Opengork leaving too many open files.
    Classification: Development
           Product: opengrok
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P3
         Component: webapp
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created attachment 4311
  --> https://defect.opensolaris.org/bz/attachment.cgi?id=4311
List of cfs files left lsof  | grep cfx

This issue is similar to the one  Bug 16692 and its causing a daily downtime
for our production server. The catalina.out shows below error when OpenGrok
starts not responding.

INFO: Reloading this Context has started
Sep 27, 2010 4:24:29 PM org.apache.catalina.startup.ContextConfig
defaultWebConfig
SEVERE: Missing default web.xml, using application web.xml only conf/web.xml
/usr/local/tomcat/conf/web.xml
java.io.FileNotFoundException: /usr/local/tomcat/conf/web.xml (Too many open
files)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:598)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1047)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4184)
        at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3056)
        at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
        at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
        at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
        at java.lang.Thread.run(Thread.java:619)


When we look at the opened files in system its found that there are too many
files opened by OpenGrok. Please find below statistics at the time of tomcat
crash. Also I am attaching the .cfs files opened (817) for reference.

Tomcat PID=1357

lsof -p 1357 | wc -l
1063

lsof -u root | wc -l
3494

lsof | grep java | wc -l
1108

lsof  | grep cfx | wc -l
123

lsof  | grep cfs | wc -l
817

-- 
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to