Investigation on the error caused by: java.lang.outofmemoryerror: Java heap space of Tomcat Java application in production environment

Error report: the Tomcat program in the production environment of the application system reports an error: caused by: java.lang.outofmemoryerror: Java heap space

Solution: after communicating with relevant developers, adjust the size of XMS and Xmx of the JVM, and optimize relevant Java program code at the same time.

The relevant parameters after adjusting the JVM in the test environment are as follows:

Test host memory: 16g

Test application 2: tomcat2
– xms4000m – xmx4000m – xmn1500m – XX: maxpermsize = 800m
test application 3: tomcat3
– xms4000m – xmx4000m – xmn1500m – XX: maxpermsize = 800m

 

Similar Posts: