Uploaded image for project: 'Wookie'
  1. Wookie
  2. WOOKIE-302

Too many open files by Wookie

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.9.2
    • Server
    • Linux 2.6.26-2-xen-amd64 #1 SMP Thu Nov 25 06:39:26 UTC 2010 x86_64 GNU/Linux
      Apache Tomcat 6.0.29
      MySQL 5.1

    Description

      It seems that Wookie opened too many files at the same moment or that Wookie did not close the open resources

      catalina.out
      10:04:04,584 ERROR ContextListener:206 - natter.wgt:Hot deploy error: Unable to move dropped .wgt file to upload folder - /home/user/applications/apache-tomcat-6.0.29/webapps/wookie/deploy/natter.wgt (Too many open files)
      java.io.FileNotFoundException: /home/user/applications/apache-tomcat-6.0.29/webapps/wookie/deploy/natter.wgt (Too many open files)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:106)
      at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:669)
      at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:653)
      at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
      at org.apache.wookie.util.WidgetFileUtils.dealWithDroppedFile(WidgetFileUtils.java:99)
      at org.apache.wookie.server.ContextListener$1$1.fileModified(ContextListener.java:181)
      at org.apache.wookie.util.WgtWatcher.check(WgtWatcher.java:95)
      at org.apache.wookie.server.ContextListener$1.run(ContextListener.java:233)

      This command "lsof -p 1720 | grep wookie | wc -l" returns 854 files opened by Wookie: It shows open files by Tomcat PID and then filter by Wookie app, I attached the result of the command "lsof -p 1720", the most opened files are ".wgt" files from "upload" folder, they are opened several times.

      Attachments

        1. lsof.txt
          156 kB
          David del Pozo González

        Activity

          People

            psharples Paul Sharples
            dpozog David del Pozo González
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment