Re: Too Many Open Files Wicket 1.4.1
Just took a quick look and it seems that our problem should still be solved. As a recap - were running into a problem with the URLConnection.getLastModfiedTime(), which under the hood opens a connection to a jar file using the JARURLConnection whose close() method is hidden. Combine this with the fact that in the URLResourceStream constructor the getLastModifiedTime() method was being called and you ended up with a lot of open FileURLConnections that couldn't be closed. The remedy still appears to be present in org.apache.wicket.util.io.Connections.getLastModified(URL url). As long as that method is called instead of directly calling getLastModifiedTime() on a URLConnection there should be no leak. I will run some more tests and if I find a problem I'll just open an issue. The original issue is well documented http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg20951.html here Adam igor.vaynberg wrote: > > we had to revert a part of that patch in 1.4.5 to fix a resource > streaming problem. please check with that. > > -igor > > On Wed, Dec 30, 2009 at 8:02 AM, adamatmagpie wrote: >> >> I was able to track down the source of our problem and I did create a >> https://issues.apache.org/jira/browse/WICKET-2534 JIRA issue which was >> patched in Wicket 1.4.4. It boiled down to a resource leak in the >> URLResourceStream which is used by wicket to get access to the >> lastModifiedTime of jar files it is monitoring. The JIRA issue has some >> more >> detail, but I have tested the fix in 1.4.4 and it cleared up our issue >> straight away. >> >> Adam >> >> >> Ilja Pavkovic-3 wrote: >>> >>> >>> https://issues.apache.org/jira/browse/WICKET-2534 >>> >>> Am Mittwoch, 30. Dezember 2009 04:29:00 schrieb Doug Leeper: Was a JIRA ticket ever created for this? I couldn't find any thing related to it. Is any one else seeing this issue? I just ran across it in our dev env after redeploying my web app. Not sure if this wicket, jdk, or weblogic. Weblogic 10 JRockit (BEA JRockit(R) (build R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32, compiled mode)) Linux Wicket 1.4.4 >>> >>> -- >>> binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin >>> >>> +49 · 171 · 9342 465 >>> >>> Handelsregister: HRB 115854 - Amtsgericht Charlottenburg >>> Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/Too-Many-Files-Wicket-1.4.1-tp25983047p26968948.html >> Sent from the Wicket - User 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 > > > -- View this message in context: http://old.nabble.com/Too-Many-Files-Wicket-1.4.1-tp25983047p26970086.html Sent from the Wicket - User 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
Re: Too Many Open Files Wicket 1.4.1
we had to revert a part of that patch in 1.4.5 to fix a resource streaming problem. please check with that. -igor On Wed, Dec 30, 2009 at 8:02 AM, adamatmagpie wrote: > > I was able to track down the source of our problem and I did create a > https://issues.apache.org/jira/browse/WICKET-2534 JIRA issue which was > patched in Wicket 1.4.4. It boiled down to a resource leak in the > URLResourceStream which is used by wicket to get access to the > lastModifiedTime of jar files it is monitoring. The JIRA issue has some more > detail, but I have tested the fix in 1.4.4 and it cleared up our issue > straight away. > > Adam > > > Ilja Pavkovic-3 wrote: >> >> >> https://issues.apache.org/jira/browse/WICKET-2534 >> >> Am Mittwoch, 30. Dezember 2009 04:29:00 schrieb Doug Leeper: >>> Was a JIRA ticket ever created for this? I couldn't find any thing >>> related >>> to it. >>> >>> Is any one else seeing this issue? I just ran across it in our dev env >>> after redeploying my web app. >>> >>> Not sure if this wicket, jdk, or weblogic. >>> >>> Weblogic 10 >>> JRockit (BEA JRockit(R) (build >>> R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32, compiled mode)) >>> Linux >>> Wicket 1.4.4 >>> >> >> -- >> binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin >> >> +49 · 171 · 9342 465 >> >> Handelsregister: HRB 115854 - Amtsgericht Charlottenburg >> Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/Too-Many-Files-Wicket-1.4.1-tp25983047p26968948.html > Sent from the Wicket - User 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
Re: Too Many Open Files Wicket 1.4.1
I was able to track down the source of our problem and I did create a https://issues.apache.org/jira/browse/WICKET-2534 JIRA issue which was patched in Wicket 1.4.4. It boiled down to a resource leak in the URLResourceStream which is used by wicket to get access to the lastModifiedTime of jar files it is monitoring. The JIRA issue has some more detail, but I have tested the fix in 1.4.4 and it cleared up our issue straight away. Adam Ilja Pavkovic-3 wrote: > > > https://issues.apache.org/jira/browse/WICKET-2534 > > Am Mittwoch, 30. Dezember 2009 04:29:00 schrieb Doug Leeper: >> Was a JIRA ticket ever created for this? I couldn't find any thing >> related >> to it. >> >> Is any one else seeing this issue? I just ran across it in our dev env >> after redeploying my web app. >> >> Not sure if this wicket, jdk, or weblogic. >> >> Weblogic 10 >> JRockit (BEA JRockit(R) (build >> R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32, compiled mode)) >> Linux >> Wicket 1.4.4 >> > > -- > binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin > >+49 · 171 · 9342 465 > > Handelsregister: HRB 115854 - Amtsgericht Charlottenburg > Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/Too-Many-Files-Wicket-1.4.1-tp25983047p26968948.html Sent from the Wicket - User 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
Re: Too Many Open Files Wicket 1.4.1
https://issues.apache.org/jira/browse/WICKET-2534 Am Mittwoch, 30. Dezember 2009 04:29:00 schrieb Doug Leeper: > Was a JIRA ticket ever created for this? I couldn't find any thing related > to it. > > Is any one else seeing this issue? I just ran across it in our dev env > after redeploying my web app. > > Not sure if this wicket, jdk, or weblogic. > > Weblogic 10 > JRockit (BEA JRockit(R) (build > R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32, compiled mode)) > Linux > Wicket 1.4.4 > -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Too Many Open Files Wicket 1.4.1
Was a JIRA ticket ever created for this? I couldn't find any thing related to it. Is any one else seeing this issue? I just ran across it in our dev env after redeploying my web app. Not sure if this wicket, jdk, or weblogic. Weblogic 10 JRockit (BEA JRockit(R) (build R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32, compiled mode)) Linux Wicket 1.4.4 -- View this message in context: http://old.nabble.com/Too-Many-Files-Wicket-1.4.1-tp25983047p26963709.html Sent from the Wicket - User 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
Re: Too many open Files
> Any Idea what could cause this? There were only 15 users in the test. Is this an automated test that hammers the server? I ran into a similar situation on Linux. The problem is that when a TCP connection is closed the socket on one side ends up in the TIME_WAIT state. This is just in case a packet was lost closing the connection. The socket stays like this for 30 seconds (I think). Also a socket takes up a file handle so opening/closing a lot of TCP connections eats up your file handles. To get a list of sockets in the TIME_WAIT state run the netstat command. If you see a ton of them just after the server starts to fail then this is your problem. I think your options are to either up the maximum number of file handles, decrease the TIME_WAIT delay, or don't hit the server so hard. -- View this message in context: http://www.nabble.com/Too-many-open-Files-tf4440829.html#a12684950 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Too many open Files
21019 35477 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- ioc-1.3.0-beta2.jar java 19905 root 249r REG 253,0 16747 35478 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- spring-1.3.0-beta2.jar java 19905 root 250r REG 253,0 15499 35479 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- spring-annot-1.3.0-beta2.jar Benjamin 2007/9/14, Benjamin Ernst <[EMAIL PROTECTED]>: Hi, our Application is running in deployment-mode. Unfortunately we are not directly able to debug the system, because it is running on the server at our client and so far we couldn't reproduce the error on our own server. Is it also possible that this is a configuration-issue? Can we tell tomcat to upper the limit for open files? Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: Hi, Did you try looking at which resources are open with the lsof? Without knowing what it is specifically that's causing the problem, the problem is kind of hard to debug. And yes, when you've run out of file descriptors, opening anything that requires one is going to fail, whether it be opening a file, opening a socket, opening a pipe... But this is not the CAUSE of the issue... the cause is whatever is being repeatedly opened and not closed. Regards, Sebastiaan Benjamin Ernst wrote: Hi, as far as I know, we don´t open any files or streams. I now got the catalina.out and it says that it is a SocketException: 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocketacceptConnections WARNING: Exception executing accept java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) at java.net.ServerSocket.implAccept (ServerSocket.java:462) at java.net.ServerSocket.accept(ServerSocket.java:433) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java :312) at org.apache.jk.common.ChannelSocket.acceptConnections ( ChannelSocket.java:666) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:803) Any Idea what could cause this? There were only 15 users in the test. Thanks for any help in advance, Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain when it tries to open a new file. On linux you can easily see WHICH resources are being left open by doing lsof. Once you know which resource is causing the problem it's usually quite easy to hunt it down in the code. Regards, Sebastiaan Benjamin Ernst wrote: Hi, We are having problems while testing our wicket-application with multiple users. Wicket says that there are too many open files. Do you have an Idea how we can avoid this problem? We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a Red-Hat Linux. This is the error-log: 2007-09-13 18:53:24,719 ERROR [TP-Processor5] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,720 ERROR [TP-Processor47] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,726 ERROR [TP-Processor98] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/we
Re: Too many open Files
cal/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > contrib-tinymce-1.3-SNAPSHOT.jar > > java 19905 root 199r REG 253,0 1990453 35474 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > contrib-tinymce-1.3-SNAPSHOT.jar > > java 19905 root 200r REG 253,0 1990453 35474 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > contrib-tinymce-1.3-SNAPSHOT.jar > > java 19905 root 201r REG 253,0 1990453 35474 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > contrib-tinymce-1.3-SNAPSHOT.jar > > java 19905 root 202r REG 253,0 1990453 35474 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > contrib-tinymce-1.3-SNAPSHOT.jar > > java 19905 root 203r REG 253,0 1990453 35474 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > contrib-tinymce-1.3-SNAPSHOT.jar > > java 19905 root 204r REG 253,0 1990453 35474 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > contrib-tinymce-1.3-SNAPSHOT.jar > > java 19905 root 244r REG 253,0 1577553 35472 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket-1.3.0-beta2.jar > > java 19905 root 245r REG 253,0 33235 35473 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > auth-roles-1.3.0-beta2.jar > > java 19905 root 246r REG 253,0 97288 35475 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > datetime-1.3.0-beta2.jar > > java 19905 root 247r REG 253,0347201 35476 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar > > java 19905 root 248r REG 253,0 21019 35477 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > ioc-1.3.0-beta2.jar > > java 19905 root 249r REG 253,0 16747 35478 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > spring-1.3.0-beta2.jar > > java 19905 root 250r REG 253,0 15499 35479 > > /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- > > spring-annot-1.3.0-beta2.jar > > > > > > Benjamin > > > > 2007/9/14, Benjamin Ernst <[EMAIL PROTECTED]>: > >> Hi, > >> our Application is running in deployment-mode. > >> > >> Unfortunately we are not directly able to debug the system, because it > is > >> running on the server at our client and so far we couldn't reproduce > the > >> error on our own server. Is it also possible that this is a > >> configuration-issue? Can we tell tomcat to upper the limit for open > files? > >> > >> Benjamin > >> > >> > >> 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > >>> Hi, > >>> > >>> Did you try looking at which resources are open with the lsof? Without > >>> knowing what it is specifically that's causing the problem, the > problem > >>> is kind of hard to debug. > >>> > >>> And yes, when you've run out of file descriptors, opening anything > that > >>> requires one is going to fail, whether it be opening a file, opening a > >>> socket, opening a pipe... But this is not the CAUSE of the issue... > the > >>> cause is whatever is being repeatedly opened and not closed. > >>> > >>> Regards, > >>> Sebastiaan > >>> > >>> > >>> Benjamin Ernst wrote: > >>>> Hi, > >>>> as far as I know, we don´t open any files or streams. I now got the > >>>> catalina.out and it says that it is a SocketException: > >>>> > >>>> 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > >>>> org.apache.wicket.util.resource.UrlResourceStream: getLastModified > for > >>>> jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > >>>> > >>> > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > >>>> /home/fips/webapps/WEB-INF/lib/wicket- > >>>> extensions-1.3.0-beta2.jar (Too many open files) > >>>> Sep 13, 2007 6:53:24 PM > org.apache.jk.common.ChannelSocketacceptConnections > >>>> WARNING: Exception executing accept > >>>> java.net.SocketException: Too many open files > >>>> at java.net.PlainS
Re: Too many open Files
g that requires one is going to fail, whether it be opening a file, opening a socket, opening a pipe... But this is not the CAUSE of the issue... the cause is whatever is being repeatedly opened and not closed. Regards, Sebastiaan Benjamin Ernst wrote: Hi, as far as I know, we don´t open any files or streams. I now got the catalina.out and it says that it is a SocketException: 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocketacceptConnections WARNING: Exception executing accept java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) at java.net.ServerSocket.implAccept (ServerSocket.java:462) at java.net.ServerSocket.accept(ServerSocket.java:433) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java :312) at org.apache.jk.common.ChannelSocket.acceptConnections ( ChannelSocket.java:666) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:803) Any Idea what could cause this? There were only 15 users in the test. Thanks for any help in advance, Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain when it tries to open a new file. On linux you can easily see WHICH resources are being left open by doing lsof. Once you know which resource is causing the problem it's usually quite easy to hunt it down in the code. Regards, Sebastiaan Benjamin Ernst wrote: Hi, We are having problems while testing our wicket-application with multiple users. Wicket says that there are too many open files. Do you have an Idea how we can avoid this problem? We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a Red-Hat Linux. This is the error-log: 2007-09-13 18:53:24,719 ERROR [TP-Processor5] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,720 ERROR [TP-Processor47] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,726 ERROR [TP-Processor98] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,729 ERROR [TP-Processor8] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,730 ERROR [TP-Processor32] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,735 ERROR [TP-Processor40] org.apache.wicket.util.resource.UrlResourceStream : getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extens
Re: Too many open Files
We did also get this Error: 2007-09-13 19:02:49,186 ERROR [FilePageSavingThread-MainApplication] org.apache.wicket.protocol.http.FilePageStore: Error saving page de.csg.fips.fe.main.MainPage [9,2] for the sessionid D95AA4FC47B08FA1EC718F8BA4E7AB29 2007-09-13 19:02:51,188 ERROR [FilePageSavingThread-MainApplication] org.apache.wicket.protocol.http.FilePageStore: Error saving page de.csg.fips.fe.main.MainPage [11,2] for the sessionid 6CB33D3B36A6F442671D29A6A06A4043 But this was way after the "Too many open files"-Error. So I thought this was result of the "Too many open files"-Error. Benjamin 2007/9/14, Matej Knopp <[EMAIL PROTECTED]>: > > By default diskpagestore doesn't eat more then 25 handles (I even plan > to increasing this), unless you are under _extreme_ load, but then > you'd see WARN messages in log. > > We used to have a problem with jetty and filehandles. Jetty didn't > properly close file handle when serving static resources. > > -Matej > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Ah, just saw that it checks for 'the jar'. Could this be the disk > > store that eats up the file handles? > > > > Martijn > > > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > Hmm, > > > > > > This: > > > 2007-09-13 18:53:24,719 ERROR [TP-Processor5] > > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > > /home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar (Too many open files) > > > > > > does suggest that the app is checking for last modified dates, while > > > for bundled resources the last modified time should use the jar's. I > > > thought we had a solution for that? > > > > > > Martijn > > > > > > On 9/14/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > > > It doesn't look like the jars are issue. What is your file handle > > > > limits? Maybe it's just set too low. > > > > > > > > -Matej > > > > > > > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > > Is this only at your client's site? Why doesn't this show on your > own > > > > > test servers? It seems like a configuration issue. > > > > > > > > > > One way to get around this problem is to unzip the jar and put the > > > > > contents on the classpath. This will solve the problem for your > client > > > > > until we have found the cause. > > > > > > > > > > Martijn > > > > > > > > > > -- > > > > > Buy Wicket in Action: http://manning.com/dashorst > > > > > Apache Wicket 1.3.0-beta3 is released > > > > > Get it now: > http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Buy Wicket in Action: http://manning.com/dashorst > > > Apache Wicket 1.3.0-beta3 is released > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > > > > > > -- > > Buy Wicket in Action: http://manning.com/dashorst > > Apache Wicket 1.3.0-beta3 is released > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Too many open Files
By default diskpagestore doesn't eat more then 25 handles (I even plan to increasing this), unless you are under _extreme_ load, but then you'd see WARN messages in log. We used to have a problem with jetty and filehandles. Jetty didn't properly close file handle when serving static resources. -Matej On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Ah, just saw that it checks for 'the jar'. Could this be the disk > store that eats up the file handles? > > Martijn > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Hmm, > > > > This: > > 2007-09-13 18:53:24,719 ERROR [TP-Processor5] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > > > does suggest that the app is checking for last modified dates, while > > for bundled resources the last modified time should use the jar's. I > > thought we had a solution for that? > > > > Martijn > > > > On 9/14/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > > It doesn't look like the jars are issue. What is your file handle > > > limits? Maybe it's just set too low. > > > > > > -Matej > > > > > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > Is this only at your client's site? Why doesn't this show on your own > > > > test servers? It seems like a configuration issue. > > > > > > > > One way to get around this problem is to unzip the jar and put the > > > > contents on the classpath. This will solve the problem for your client > > > > until we have found the cause. > > > > > > > > Martijn > > > > > > > > -- > > > > Buy Wicket in Action: http://manning.com/dashorst > > > > Apache Wicket 1.3.0-beta3 is released > > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Buy Wicket in Action: http://manning.com/dashorst > > Apache Wicket 1.3.0-beta3 is released > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Too many open Files
On our development system it looks like this: [EMAIL PROTECTED] ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited max nice(-e) 0 file size (blocks, -f) unlimited pending signals (-i) 16384 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size(512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 max rt priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 2047 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited For the system at our client I have to check with their administrator. Benjamin 2007/9/14, Matej Knopp <[EMAIL PROTECTED]>: > > It doesn't look like the jars are issue. What is your file handle > limits? Maybe it's just set too low. > > -Matej > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Is this only at your client's site? Why doesn't this show on your own > > test servers? It seems like a configuration issue. > > > > One way to get around this problem is to unzip the jar and put the > > contents on the classpath. This will solve the problem for your client > > until we have found the cause. > > > > Martijn > > > > -- > > Buy Wicket in Action: http://manning.com/dashorst > > Apache Wicket 1.3.0-beta3 is released > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Too many open Files
Ah, just saw that it checks for 'the jar'. Could this be the disk store that eats up the file handles? Martijn On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Hmm, > > This: > 2007-09-13 18:53:24,719 ERROR [TP-Processor5] > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > /home/fips/webapps/WEB-INF/lib/wicket- > extensions-1.3.0-beta2.jar (Too many open files) > > does suggest that the app is checking for last modified dates, while > for bundled resources the last modified time should use the jar's. I > thought we had a solution for that? > > Martijn > > On 9/14/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > It doesn't look like the jars are issue. What is your file handle > > limits? Maybe it's just set too low. > > > > -Matej > > > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > Is this only at your client's site? Why doesn't this show on your own > > > test servers? It seems like a configuration issue. > > > > > > One way to get around this problem is to unzip the jar and put the > > > contents on the classpath. This will solve the problem for your client > > > until we have found the cause. > > > > > > Martijn > > > > > > -- > > > Buy Wicket in Action: http://manning.com/dashorst > > > Apache Wicket 1.3.0-beta3 is released > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Too many open Files
Hmm, This: 2007-09-13 18:53:24,719 ERROR [TP-Processor5] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) does suggest that the app is checking for last modified dates, while for bundled resources the last modified time should use the jar's. I thought we had a solution for that? Martijn On 9/14/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > It doesn't look like the jars are issue. What is your file handle > limits? Maybe it's just set too low. > > -Matej > > On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Is this only at your client's site? Why doesn't this show on your own > > test servers? It seems like a configuration issue. > > > > One way to get around this problem is to unzip the jar and put the > > contents on the classpath. This will solve the problem for your client > > until we have found the cause. > > > > Martijn > > > > -- > > Buy Wicket in Action: http://manning.com/dashorst > > Apache Wicket 1.3.0-beta3 is released > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Too many open Files
It doesn't look like the jars are issue. What is your file handle limits? Maybe it's just set too low. -Matej On 9/14/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Is this only at your client's site? Why doesn't this show on your own > test servers? It seems like a configuration issue. > > One way to get around this problem is to unzip the jar and put the > contents on the classpath. This will solve the problem for your client > until we have found the cause. > > Martijn > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Too many open Files
Is this only at your client's site? Why doesn't this show on your own test servers? It seems like a configuration issue. One way to get around this problem is to unzip the jar and put the contents on the classpath. This will solve the problem for your client until we have found the cause. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Too many open Files
90453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 192r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 193r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 194r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 195r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 196r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 197r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 198r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 199r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 200r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 201r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 202r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 203r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 204r REG 253,0 1990453 35474 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- contrib-tinymce-1.3-SNAPSHOT.jar java 19905 root 244r REG 253,0 1577553 35472 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket-1.3.0-beta2.jar java 19905 root 245r REG 253,0 33235 35473 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- auth-roles-1.3.0-beta2.jar java 19905 root 246r REG 253,0 97288 35475 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- datetime-1.3.0-beta2.jar java 19905 root 247r REG 253,0347201 35476 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar java 19905 root 248r REG 253,0 21019 35477 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket-ioc-1.3.0-beta2.jar java 19905 root 249r REG 253,0 16747 35478 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket-spring-1.3.0-beta2.jar java 19905 root 250r REG 253,0 15499 35479 /usr/local/tomcat/webapps/FIPS_neu/WEB-INF/lib/wicket- spring-annot-1.3.0-beta2.jar Benjamin 2007/9/14, Benjamin Ernst <[EMAIL PROTECTED]>: > > Hi, > our Application is running in deployment-mode. > > Unfortunately we are not directly able to debug the system, because it is > running on the server at our client and so far we couldn't reproduce the > error on our own server. Is it also possible that this is a > configuration-issue? Can we tell tomcat to upper the limit for open files? > > Benjamin > > > 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > > > > Hi, > > > > Did you try looking at which resources are open with the lsof? Without > > knowing what it is specifically that's causing the problem, the problem > > is kind of hard to debug. > > > > And yes, when you've run out of file descriptors, opening anything that > > requires one is going to fail, whether it be opening a file, opening a > > socket, opening a pipe... But this is not the CAUSE of the issue... the > > cause is whatever is being repeatedly opened and not closed. > > > > Regards, > > Sebastiaan > > > > > > Benjamin Ernst wrote: > > > Hi, > > > as far as I know, we don´t open any files or streams. I now got the > > > catalina.out and it says that it is a SocketException: > > > > > > 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > >
Re: Too many open Files
Hi, our Application is running in deployment-mode. Unfortunately we are not directly able to debug the system, because it is running on the server at our client and so far we couldn't reproduce the error on our own server. Is it also possible that this is a configuration-issue? Can we tell tomcat to upper the limit for open files? Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > > Hi, > > Did you try looking at which resources are open with the lsof? Without > knowing what it is specifically that's causing the problem, the problem > is kind of hard to debug. > > And yes, when you've run out of file descriptors, opening anything that > requires one is going to fail, whether it be opening a file, opening a > socket, opening a pipe... But this is not the CAUSE of the issue... the > cause is whatever is being repeatedly opened and not closed. > > Regards, > Sebastiaan > > > Benjamin Ernst wrote: > > Hi, > > as far as I know, we don´t open any files or streams. I now got the > > catalina.out and it says that it is a SocketException: > > > > 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocketacceptConnections > > WARNING: Exception executing accept > > java.net.SocketException: Too many open files > > at java.net.PlainSocketImpl.socketAccept(Native Method) > > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) > > at java.net.ServerSocket.implAccept(ServerSocket.java:462) > > at java.net.ServerSocket.accept(ServerSocket.java:433) > > at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312) > > at org.apache.jk.common.ChannelSocket.acceptConnections( > > ChannelSocket.java:666) > > at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( > > ChannelSocket.java:876) > > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > ThreadPool.java:685) > > at java.lang.Thread.run(Thread.java:803) > > > > Any Idea what could cause this? There were only 15 users in the test. > > > > Thanks for any help in advance, > > Benjamin > > > > 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > >> Do you open any files (streams) in your webapplication that you forgot > >> to close? That would cause the files to run out and cause wicket to > >> complain when it tries to open a new file. > >> > >> On linux you can easily see WHICH resources are being left open by > doing > >> lsof. Once you know which resource is causing the problem it's usually > >> quite easy to hunt it down in the code. > >> > >> Regards, > >> Sebastiaan > >> > >> > >> > >> Benjamin Ernst wrote: > >>> Hi, > >>> > >>> We are having problems while testing our wicket-application with > >> multiple > >>> users. Wicket says that there are too many open files. > >>> Do you have an Idea how we can avoid this problem? > >>> We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a > >> Red-Hat > >>> Linux. > >>> > >>> This is the error-log: > >>> > >>> 2007-09-13 18:53:24,719 ERROR [TP-Processor5] > >>> org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > >>> jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > >>> > >> > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > >>> /home/fips/webapps/WEB-INF/lib/wicket- > >>> extensions-1.3.0-beta2.jar (Too many open files) > >>> 2007-09-13 18:53:24,720 ERROR [TP-Processor47] > >>> org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > >>> jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > >>> > >> > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > >>> /home/fips/webapps/WEB-INF/lib/wicket- > >>> extensions-1.3.0-beta2.jar (Too many open files) > >>> 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > >>> org.apache.wicket.util.resource.UrlResourceStream
Re: Too many open Files
Hi, our Application is running in deployment-mode. Unfortunately we are not directly able to debug the system, because it is running on the server at our client and so far we couldn't reproduce the error on our own server. Is it also possible that this is a configuration-issue? Can we tell tomcat to upper the limit for open files? Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > > Hi, > > Did you try looking at which resources are open with the lsof? Without > knowing what it is specifically that's causing the problem, the problem > is kind of hard to debug. > > And yes, when you've run out of file descriptors, opening anything that > requires one is going to fail, whether it be opening a file, opening a > socket, opening a pipe... But this is not the CAUSE of the issue... the > cause is whatever is being repeatedly opened and not closed. > > Regards, > Sebastiaan > > > Benjamin Ernst wrote: > > Hi, > > as far as I know, we don´t open any files or streams. I now got the > > catalina.out and it says that it is a SocketException: > > > > 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocketacceptConnections > > WARNING: Exception executing accept > > java.net.SocketException: Too many open files > > at java.net.PlainSocketImpl.socketAccept(Native Method) > > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) > > at java.net.ServerSocket.implAccept(ServerSocket.java:462) > > at java.net.ServerSocket.accept(ServerSocket.java:433) > > at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312) > > at org.apache.jk.common.ChannelSocket.acceptConnections( > > ChannelSocket.java:666) > > at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( > > ChannelSocket.java:876) > > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > ThreadPool.java:685) > > at java.lang.Thread.run(Thread.java:803) > > > > Any Idea what could cause this? There were only 15 users in the test. > > > > Thanks for any help in advance, > > Benjamin > > > > 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > >> Do you open any files (streams) in your webapplication that you forgot > >> to close? That would cause the files to run out and cause wicket to > >> complain when it tries to open a new file. > >> > >> On linux you can easily see WHICH resources are being left open by > doing > >> lsof. Once you know which resource is causing the problem it's usually > >> quite easy to hunt it down in the code. > >> > >> Regards, > >> Sebastiaan > >> > >> > >> > >> Benjamin Ernst wrote: > >>> Hi, > >>> > >>> We are having problems while testing our wicket-application with > >> multiple > >>> users. Wicket says that there are too many open files. > >>> Do you have an Idea how we can avoid this problem? > >>> We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a > >> Red-Hat > >>> Linux. > >>> > >>> This is the error-log: > >>> > >>> 2007-09-13 18:53:24,719 ERROR [TP-Processor5] > >>> org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > >>> jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > >>> > >> > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > >>> /home/fips/webapps/WEB-INF/lib/wicket- > >>> extensions-1.3.0-beta2.jar (Too many open files) > >>> 2007-09-13 18:53:24,720 ERROR [TP-Processor47] > >>> org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > >>> jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > >>> > >> > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > >>> /home/fips/webapps/WEB-INF/lib/wicket- > >>> extensions-1.3.0-beta2.jar (Too many open files) > >>> 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > >>> org.apache.wicket.util.resource.UrlResourceStream
Re: Too many open Files
Hi, Martijn Dashorst wrote: Do you run in development mode? Try switching to deployment mode. In development mode wicket will scan for changes of files, and that triggers a bug/feature in the JVM that keeps file handles open. Martijn As far as I recall, this bug was actually fixed (I remember finding a workaround for the JVM bug a while back and posting it to the list), and I'm having totally no problems with open files in development mode in 1.3.0 beta 3. (Before it used to happen within an hour, and an lsof | grep wicket | wc -l would increase by the second. But still, running in production mode is a good idea on a production site. :-) Regards, Sebastiaan On 9/14/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote: Hi, as far as I know, we don´t open any files or streams. I now got the catalina.out and it says that it is a SocketException: 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) at java.net.ServerSocket.implAccept(ServerSocket.java:462) at java.net.ServerSocket.accept(ServerSocket.java:433) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312) at org.apache.jk.common.ChannelSocket.acceptConnections( ChannelSocket.java:666) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:803) Any Idea what could cause this? There were only 15 users in the test. Thanks for any help in advance, Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain when it tries to open a new file. On linux you can easily see WHICH resources are being left open by doing lsof. Once you know which resource is causing the problem it's usually quite easy to hunt it down in the code. Regards, Sebastiaan Benjamin Ernst wrote: Hi, We are having problems while testing our wicket-application with multiple users. Wicket says that there are too many open files. Do you have an Idea how we can avoid this problem? We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a Red-Hat Linux. This is the error-log: 2007-09-13 18:53:24,719 ERROR [TP-Processor5] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,720 ERROR [TP-Processor47] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,726 ERROR [TP-Processor98] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,729 ERROR [TP-Processor8] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,730 ERROR [TP-Processor32] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/marku
Re: Too many open Files
Hi, Did you try looking at which resources are open with the lsof? Without knowing what it is specifically that's causing the problem, the problem is kind of hard to debug. And yes, when you've run out of file descriptors, opening anything that requires one is going to fail, whether it be opening a file, opening a socket, opening a pipe... But this is not the CAUSE of the issue... the cause is whatever is being repeatedly opened and not closed. Regards, Sebastiaan Benjamin Ernst wrote: Hi, as far as I know, we don´t open any files or streams. I now got the catalina.out and it says that it is a SocketException: 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) at java.net.ServerSocket.implAccept(ServerSocket.java:462) at java.net.ServerSocket.accept(ServerSocket.java:433) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312) at org.apache.jk.common.ChannelSocket.acceptConnections( ChannelSocket.java:666) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:803) Any Idea what could cause this? There were only 15 users in the test. Thanks for any help in advance, Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain when it tries to open a new file. On linux you can easily see WHICH resources are being left open by doing lsof. Once you know which resource is causing the problem it's usually quite easy to hunt it down in the code. Regards, Sebastiaan Benjamin Ernst wrote: Hi, We are having problems while testing our wicket-application with multiple users. Wicket says that there are too many open files. Do you have an Idea how we can avoid this problem? We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a Red-Hat Linux. This is the error-log: 2007-09-13 18:53:24,719 ERROR [TP-Processor5] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,720 ERROR [TP-Processor47] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,726 ERROR [TP-Processor98] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,729 ERROR [TP-Processor8] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,730 ERROR [TP-Processor32] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,735 ERROR [TP-Processor40] org.apache.wicket.util.resource.UrlResourceStream: getLast
Re: Too many open Files
Do you run in development mode? Try switching to deployment mode. In development mode wicket will scan for changes of files, and that triggers a bug/feature in the JVM that keeps file handles open. Martijn On 9/14/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote: > Hi, > as far as I know, we don´t open any files or streams. I now got the > catalina.out and it says that it is a SocketException: > > 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > /home/fips/webapps/WEB-INF/lib/wicket- > extensions-1.3.0-beta2.jar (Too many open files) > Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocket acceptConnections > WARNING: Exception executing accept > java.net.SocketException: Too many open files > at java.net.PlainSocketImpl.socketAccept(Native Method) > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) > at java.net.ServerSocket.implAccept(ServerSocket.java:462) > at java.net.ServerSocket.accept(ServerSocket.java:433) > at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312) > at org.apache.jk.common.ChannelSocket.acceptConnections( > ChannelSocket.java:666) > at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( > ChannelSocket.java:876) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > ThreadPool.java:685) > at java.lang.Thread.run(Thread.java:803) > > Any Idea what could cause this? There were only 15 users in the test. > > Thanks for any help in advance, > Benjamin > > 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > > > > Do you open any files (streams) in your webapplication that you forgot > > to close? That would cause the files to run out and cause wicket to > > complain when it tries to open a new file. > > > > On linux you can easily see WHICH resources are being left open by doing > > lsof. Once you know which resource is causing the problem it's usually > > quite easy to hunt it down in the code. > > > > Regards, > > Sebastiaan > > > > > > > > Benjamin Ernst wrote: > > > Hi, > > > > > > We are having problems while testing our wicket-application with > > multiple > > > users. Wicket says that there are too many open files. > > > Do you have an Idea how we can avoid this problem? > > > We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a > > Red-Hat > > > Linux. > > > > > > This is the error-log: > > > > > > 2007-09-13 18:53:24,719 ERROR [TP-Processor5] > > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > > /home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar (Too many open files) > > > 2007-09-13 18:53:24,720 ERROR [TP-Processor47] > > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > > /home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar (Too many open files) > > > 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > > /home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar (Too many open files) > > > 2007-09-13 18:53:24,726 ERROR [TP-Processor98] > > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > > /home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar (Too many open files) > > > 2007-09-13 18:53:24,729 ERROR [TP-Processor8] > > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > > &
Re: Too many open Files
Hi, as far as I know, we don´t open any files or streams. I now got the catalina.out and it says that it is a SocketException: 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) Sep 13, 2007 6:53:24 PM org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:423) at java.net.ServerSocket.implAccept(ServerSocket.java:462) at java.net.ServerSocket.accept(ServerSocket.java:433) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:312) at org.apache.jk.common.ChannelSocket.acceptConnections( ChannelSocket.java:666) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt( ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:803) Any Idea what could cause this? There were only 15 users in the test. Thanks for any help in advance, Benjamin 2007/9/14, Sebastiaan van Erk <[EMAIL PROTECTED]>: > > Do you open any files (streams) in your webapplication that you forgot > to close? That would cause the files to run out and cause wicket to > complain when it tries to open a new file. > > On linux you can easily see WHICH resources are being left open by doing > lsof. Once you know which resource is causing the problem it's usually > quite easy to hunt it down in the code. > > Regards, > Sebastiaan > > > > Benjamin Ernst wrote: > > Hi, > > > > We are having problems while testing our wicket-application with > multiple > > users. Wicket says that there are too many open files. > > Do you have an Idea how we can avoid this problem? > > We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a > Red-Hat > > Linux. > > > > This is the error-log: > > > > 2007-09-13 18:53:24,719 ERROR [TP-Processor5] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > 2007-09-13 18:53:24,720 ERROR [TP-Processor47] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > 2007-09-13 18:53:24,721 ERROR [TP-Processor116] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > 2007-09-13 18:53:24,726 ERROR [TP-Processor98] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > 2007-09-13 18:53:24,729 ERROR [TP-Processor8] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > 2007-09-13 18:53:24,730 ERROR [TP-Processor32] > > org.apache.wicket.util.resource.UrlResourceStream: getLastModified for > > jar:file:/home/fips/webapps/WEB-INF/lib/wicket- > > > extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: > > /home/fips/webapps/WEB-INF/lib/wicket- > > extensions-1.3.0-beta2.jar (Too many open files) > > 2007-09-13 18:53:24,735 ERROR [TP-Processor40] > > org.a
Re: Too many open Files
Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain when it tries to open a new file. On linux you can easily see WHICH resources are being left open by doing lsof. Once you know which resource is causing the problem it's usually quite easy to hunt it down in the code. Regards, Sebastiaan Benjamin Ernst wrote: Hi, We are having problems while testing our wicket-application with multiple users. Wicket says that there are too many open files. Do you have an Idea how we can avoid this problem? We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a Red-Hat Linux. This is the error-log: 2007-09-13 18:53:24,719 ERROR [TP-Processor5] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,720 ERROR [TP-Processor47] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,726 ERROR [TP-Processor98] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,729 ERROR [TP-Processor8] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,730 ERROR [TP-Processor32] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,735 ERROR [TP-Processor40] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,735 ERROR [TP-Processor13] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-2-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,815 ERROR [TP-Processor73] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-2-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,824 ERROR [TP-Processor62] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,824 ERROR [TP-Processor55] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,825 ERROR [TP-Processor80] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-b
Too many open Files
Hi, We are having problems while testing our wicket-application with multiple users. Wicket says that there are too many open files. Do you have an Idea how we can avoid this problem? We are using Wicket 1.3.0-beta2 in Tomcat 5.5.23 with IBM JDK 5 on a Red-Hat Linux. This is the error-log: 2007-09-13 18:53:24,719 ERROR [TP-Processor5] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,720 ERROR [TP-Processor47] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,721 ERROR [TP-Processor116] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,726 ERROR [TP-Processor98] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,729 ERROR [TP-Processor8] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,730 ERROR [TP-Processor32] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,735 ERROR [TP-Processor40] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,735 ERROR [TP-Processor13] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-2-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,815 ERROR [TP-Processor73] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-2-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,824 ERROR [TP-Processor62] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,824 ERROR [TP-Processor55] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,825 ERROR [TP-Processor80] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar (Too many open files) 2007-09-13 18:53:24,833 ERROR [TP-Processor100] org.apache.wicket.util.resource.UrlResourceStream: getLastModified for jar:file:/home/fips/webapps/WEB-INF/lib/wicket- extensions-1.3.0-beta2.jar!/org/apache/wicket/extensions/ajax/markup/html/modal/res/frame-blue-1-ie.pngfailed: /home/fips/webapps/WEB-INF/lib/wicket