Java Spring app + Tomcat: JVM does not dump memory

at my company, we are developing a corporate web application in Spring (Flex interface) and deploying this application for our customers in Tomcat 6 in the SAAS style.

Recently, we have been suffering from (apparently) random OutOfMemory errors, so after research I knew that we should check the JVM memory dump at the time of the error.

We are using JVM 1.6.18, and Tomcat version is Tomcat 7.0.23 under Windows Server 2008.

I added the option -XX: + HeapDumpOnOutOfMemoryError in the Tomcat dashboard (under the Java tab), but the machines do not produce any dumps.

The full java parameters are set as follows on the server we are examining:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0
-Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 7.0
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed
-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 7.0\conf\logging.properties
-XX:PermSize=128m
-XX:MaxPermSize=1024m
-Xms1024m
-Xmx6144m
-XX:+HeapDumpOnOutOfMemoryError
-Dcom.sun.management.jmxremote.port=3333
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false 

, (6 Gigs), . jmx JVM VisualVM, , .

, stderr, :

java.lang.OutOfMemoryError

oom ( , , , OOM) .

, ( Java, Permgen Space).

, , JVM , (OOM)? , JMX ?

VisualVM JVM: Visualvm

UPDATE:

tomcat ( ​​ , , , java), -, , OOM, arraylist . , java -XX: + HeapDumpOnOutOfMemoryError , , OOM; , , :

java.lang.OutOfMemoryError: Java Heap space

. , , JVM args, , .

, OOM Tomcat. , OOM Tomcat.

, , .: (

+4
1

-XX:HeapDumpPath="/some/path/dump.out" JVM,

0

Source: https://habr.com/ru/post/1568713/


All Articles