ldonahue

com.esri.rest.RestFilter doFilter + java.lang.OutOfMemoryError: PermGen space

Discussion created by ldonahue on Feb 22, 2013
Has anyone seen this error in their server logs?

This comes from deploying a ArcGIS JavaScript API based web app.  There seems to be no repeatable cause, sometimes the web app just becomes unresponsive and then our web server crashes, and when we check the Tomcat logs, we have this nice message. 

Feb 22, 2013 3:17:44 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
                at java.util.Formatter.parse(Formatter.java:2480)
                at java.util.Formatter.format(Formatter.java:2414)
                at java.util.Formatter.format(Formatter.java:2367)
                at java.lang.String.format(String.java:2769)
                at com.esri.rest.mapserver.MapInfo.writeTileToResponse(MapInfo.java:733)
                at com.esri.rest.mapserver.MapServerServlet.d(MapServerServlet.java:403)
                at com.esri.rest.mapserver.MapServerServlet.service(MapServerServlet.java:152)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
                at com.esri.rest.catalog.CatalogServlet.service(CatalogServlet.java:181)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
                at com.esri.rest.DispatchServlet.service(DispatchServlet.java:123)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at com.esri.rest.security.SecurityFilter.doFilter(SecurityFilter.java:79)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at com.esri.rest.RestFilter.doFilter(RestFilter.java:81)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
Feb 22, 2013 3:17:46 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
                at java.util.Formatter.parse(Formatter.java:2480)
                at java.util.Formatter.format(Formatter.java:2414)
                at java.util.Formatter.format(Formatter.java:2367)
                at java.lang.String.format(String.java:2769)
                at com.esri.rest.mapserver.MapInfo.writeTileToResponse(MapInfo.java:733)
                at com.esri.rest.mapserver.MapServerServlet.d(MapServerServlet.java:403)
                at com.esri.rest.mapserver.MapServerServlet.service(MapServerServlet.java:152)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
                at com.esri.rest.catalog.CatalogServlet.service(CatalogServlet.java:181)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
                at com.esri.rest.DispatchServlet.service(DispatchServlet.java:123)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at com.esri.rest.security.SecurityFilter.doFilter(SecurityFilter.java:79)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at com.esri.rest.RestFilter.doFilter(RestFilter.java:81)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
Feb 22, 2013 3:17:47 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:17:49 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:17:49 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:17:49 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:17:49 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:17:50 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:17:51 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:17:53 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:18:04 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:18:06 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:18:09 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:18:23 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
Feb 22, 2013 3:18:24 PM com.esri.rest.RestFilter doFilter
SEVERE: Unable to process request
java.lang.OutOfMemoryError: PermGen space
"http-apr-80-exec-19" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-apr-80-exec-26" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-apr-80-exec-28" java.lang.OutOfMemoryError: PermGen space
 

Outcomes