Hi,

Use 'lsof' program to see which process keeps most of the file handles.
If it is JBoss process keeping handles to files used by Wicket then
try with 1.4.19/1.5.3 and let us know if you find something wrong.

On Tue, Nov 22, 2011 at 10:10 PM, sreekar
<[email protected]> wrote:
> Hello,
>
> We've build a web app using wicket 1.4.12, and the app is working fine in
> PROD as of now.
>
> But in few cases we're not sure why, sometimes the app will be broken, when
> we go and check our system logs we always find the same error -- > Diskpage
> store error. Reason : Too many open files.
>
> Can you help us how to fix this issue. Below is the stack trace :
>
> [ERROR] [org.apache.wicket.protocol.http.pagestore.DiskPageStore] [Error
> flushing page]
> java.lang.RuntimeException: java.io.FileNotFoundException:
> /config/jboss/ews/1.0/domains/sub/SMG-A2/work/Catalina/vx103a.uprr.com/smg/wicketFilter-filestore/8911/4302/AAB43AE22C72ABBC7C7995E618289944.smgA2/pm-null
> (Too many open files)
>        at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:103)
>        at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.getFileChannel(FileChannelPool.java:170)
>        at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore$SessionEntry.savePage(DiskPageStore.java:241)
>        at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSaveList(DiskPageStore.java:924)
>        at
> org.apache.wicket.protocol.http.pagestore.DiskPageStore$PageSavingThread.run(DiskPageStore.java:996)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.io.FileNotFoundException:
> /config/jboss/ews/1.0/domains/sub/SMG-A2/work/Catalina/vx103a.uprr.com/smg/wicketFilter-filestore/8911/4302/AAB43AE22C72ABBC7C7995E618289944.smgA2/pm-null
> (Too many open files)
>        at java.io.RandomAccessFile.open(Native Method)
>        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
>        at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(FileChannelPool.java:98)
>        ... 5 more
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/DiskPageStore-issue-tp4097112p4097112.html
> Sent from the Forum for Wicket Core developers mailing list archive at 
> Nabble.com.
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

Reply via email to