Article From:https://segmentfault.com/q/1010000012152447
Question:

Serious: Unexpected death of background thread ContainerBackgroundProcessor[StandardEngine[Catalina]]
java.lang.OutOfMemoryError: PermGen space。

What is the reason?

Answer 0:

Memory overflow, in detail, is permanent memory overflow, permanent memory settings larger, the default is 64M, the following is the set example:
Modify the TOMCAT_HOME/bin/catalina.bat file
Add this line to echo “using CATALINA_BASE:$CATALINA_BASE”:

set JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=128m -XX:MaxPermSize=512m

The above sentence is set to permanently set the initial space 128M, the largest 512M.

Answer 1:

tomcatIf you don’t have enough memory, you will increase the JVM memory of Tomcat. The specific way is to set the parameters of the JVM. There are 2 kinds of cases:
1.Independent Tomcat
Configuration file settings
2.IDEIntegrated Tomcat
IDESetting up

Leave a Reply

Your email address will not be published. Required fields are marked *