You need to increase the maximum number of file handles allowed by your system.
On linux/OSX find open files limit per process: ulimit -n count all opened files by all process: lsof | wc -l list of processes and the number of file handles they have open: lsof | cut -d " " -f 1 | uniq -c | sort -nr François Meillet Formation Wicket - Développement Wicket Le 15 mai 2014 à 12:29, Andrea Del Bene <an.delb...@gmail.com> a écrit : > Hi, > > which version of Wicket are you using? >> Hi, my application in production often gets this error: >> May 14 09:12:27 ERROR >> DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data >> (Too many open files) >> java.io.FileNotFoundException: >> /opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/4729/2939/909EAC3343856968BA7B1864B71CEA85/data >> (Too many open files) >> at java.io.RandomAccessFile.open(Native Method) >> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) >> at >> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425) >> at >> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343) >> at >> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) >> at >> org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:228) >> at >> org.apache.wicket.pageStore.DefaultPageStore.storePageData(DefaultPageStore.java:120) >> at >> org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:154) >> at >> org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:412) >> at >> org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181) >> >> >> >> >> and now I am getting this error for every page opened making the log file >> extremely large: >> >> May 14 11:36:31 WARN DiskDataStore-Cannot save page with id '866' because >> the data file cannot be opened. >> May 14 11:36:31 ERROR >> DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data >> (Permission denied) >> java.io.FileNotFoundException: >> /opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data >> (Permission denied) >> at java.io.RandomAccessFile.open(Native Method) >> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) >> at >> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425) >> at >> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343) >> at >> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) >> at >> org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355) >> at java.lang.Thread.run(Thread.java:722) >> May 14 11:36:31 WARN DiskDataStore-Cannot save page with id '0' because the >> data file cannot be opened. >> May 14 11:36:32 ERROR >> DiskDataStore-/opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data >> (Permission denied) >> java.io.FileNotFoundException: >> /opt/ssa/tomcat/apache-tomcat-7.0.29/work/Catalina/localhost/SSA/wicket.ssa-webapp-filestore/3943/9005/A851AC58C741B566C0E40BE1791649E1/data >> (Permission denied) >> at java.io.RandomAccessFile.open(Native Method) >> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) >> at >> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:425) >> at >> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:343) >> at >> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:181) >> at >> org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355) >> at java.lang.Thread.run(Thread.java:722) >> May 14 11:36:32 WARN DiskDataStore-Cannot save page with id '0' because the >> data file cannot be opened. >> >> >> >> >> >> What can be causing these errors? is this more of a Tomcat thing or Wicket? >> >> Thanks! >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/DiskDataStore-errors-in-production-tp4665841.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >