Hard to know without seeing code, but the message seems to indicate app is failing to close files after it's finished with them. In other words, an operating system problem, rather than Tomcat or Wicket.
From: eaglei22 <jchojnack...@gmail.com> To: users@wicket.apache.org Date: 05/15/2014 02:02 AM Subject: DiskDataStore errors in production 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-tp4665839.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 ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **