Get the App
SLTechnology News&Howtos  ›  Servers  › 

Too small initial heap for new size specified reported an error

Shulou Source: shulou.com Published: 2022-06-03 05:45:34 11月12日 Update

I. Environment

2. Error message

Third, the reason

IV. Solution

Environment Red Hat Enterprise Linux Server release 7.2 (Maipo) java version "1.7.080" Java (TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot (TM) 64-Bit Server VM (build 24.80-b11, mixed mode) apache-tomcat-7.0.94

Tomcat Startup Settings

JAVA_OPTS= "- server-Xmx256m-Xms256m-Xmn256m-Xss256k-XX:+DisableExplicitGC-XX:+UseConcMarkSweepGC-XX:+CMSParallelRemarkEnabled-XX:+UseFastAccessorMethods-XX:+UseCMSInitiatingOccupancyOnly-XX:CMSInitiatingOccupancyFraction=70-Duser.timezone=GMT+8" II, error message Error occurred during initialization of VMToo small initial heap for new size specified III, error reason

Reason: misunderstanding of xmn (Xmn cannot be greater than or equal to Xmx)

See https://my.oschina.net/chendongzg/blog/789803

4. Change the solution from-Xmn256m to-Xmn128m

Restart, start normally

Special link:

Http://yjph83.iteye.com/blog/2108105

Http://www.cnblogs.com/redcreen/archive/2011/05/04/2037057.html

Tags: Cause error information way environment link Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Huawei Microsoft Linux MariaDB