We are using Wicket in our Admin console and sometimes an OutOfMemory problem occurs.
Have you ever experienced such a problem? Here the stacktrace: 2008-02-01 09:19:04,460 [FilePageSerializingThread-Admin] ERROR STDERR - Exception in thread "FilePageSerializingThread-Admin" 2008-02-01 09:19:04,460 [FilePageSerializingThread-Admin] ERROR STDERR - java.lang.OutOfMemoryError: PermGen space 2008-02-01 09:48:40,189 [TP-Processor1] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/admin].[default] - Servlet.service() for servl et default threw exception java.lang.OutOfMemoryError: PermGen space 2008-02-01 09:49:48,847 [TP-Processor24] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/admin].[default] - Servlet.service() for serv let default threw exception java.lang.OutOfMemoryError: PermGen space 2008-02-01 09:53:49,550 [TP-Processor31] ERROR org.apache.wicket.RequestCycle - java.lang.NullPointerException at java.io.FilterInputStream.close(FilterInputStream.java:159) at sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream.close (JarURLConnection.java:88) at org.apache.wicket.Response.write(Response.java:323) at org.apache.wicket.request.target.resource.ResourceStreamRequestTarget.respond (ResourceStreamRequestTarget.java:127) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond( AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1046) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1112) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) at org.apache.wicket.protocol.http.WicketFilter.doGet( WicketFilter.java:257) at org.apache.wicket.protocol.http.WicketFilter.doFilter( WicketFilter.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter( OncePerRequestFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke( SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke( JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java :199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java :282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection( ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt( ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2008-02-01 09:53:49,551 [TP-Processor31] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/admin].[default] - Servlet.service() for serv let default threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java :599) at org.apache.catalina.connector.ResponseFacade.getWriter( ResponseFacade.java:195) at org.apache.wicket.protocol.http.WebResponse.write( WebResponse.java:338) at org.apache.wicket.protocol.http.BufferedWebResponse.close( BufferedWebResponse.java:74) at org.apache.wicket.protocol.http.WicketFilter.doGet( WicketFilter.java:267) at org.apache.wicket.protocol.http.WicketFilter.doFilter( WicketFilter.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal (OpenSessionInViewFilter.java:198) Thanks in advance, Vicio.