Details
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.