[ 
https://issues.apache.org/jira/browse/WOOKIE-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185614#comment-13185614
 ] 

Paul Sharples commented on WOOKIE-302:
--------------------------------------

I think I've fixed the problem, which was in the parser module 
(W3CWidgetModel.class).  Basically the original zip entry was never closed, so 
wookie kept a handle to each processed wgt. package.  According to my tests, 
each file is now released after processing. (and you can delete it manually on 
the file system)

You will have to rebuild your wookie-parser module for changes to take effect.

Let me know if this fixes the issue.
                
> Too many open files by Wookie
> -----------------------------
>
>                 Key: WOOKIE-302
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-302
>             Project: Wookie
>          Issue Type: Bug
>          Components: Server
>         Environment: 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
>            Reporter: David del Pozo González
>              Labels: file, resources
>         Attachments: lsof.txt
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to