When viewing a Java Web mapping application created, using the ArcGIS Server Java Web Manager, the following errors may be returned:
java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: Java Heap Space
These errors are generally found in the ArcGIS Server Manager logs; for example: manager_stdout.txt, manager_stderr.txt, located in the $AGSHOME/java/manager/service/logs directory.
Note: $AGSHOME refers to the ArcGIS Server installation directory.
The Java Virtual Machine (JVM) hosting the Web mapping application has reached the maximum allowed limit for PermGen memory.
Note: ArcGIS Server provides an out-of-the-box Apache Tomcat Web server (running on port 8399) for hosting the Web applications and by default, the JVM memory size is limited. This version of Tomcat is bundled with ArcGIS Server and is referred to as 'internal Tomat' in this article.
There are several operations that can lead to an error associated with the Java heap size. Examples of a few such operations are provided below:
Increase the maximum limit for PermGen Memory for the internal Tomcat JVM.
Note: This feature is only available in ArcGIS Server 9.2 with Service Pack 4, and is also included in the future releases.
Step-by-step instructions are provided below:
managerappserver.jvm.options=-Xms256m -Xmx256m -XX:MaxPermSize=1024m