场景
在本地启动一个 java swing 项目时,出错如下 :
解决
REM if "%XX_JAVA_OPTIONS%"=="" set XX_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m"
if "%XX_JAVA_OPTIONS%"=="" set XX_JAVA_OPTIONS="-Xms512m" "-Xmx1024m" "-XX:MaxPermSize=128m"
原因:JVM内存分配
在本地启动一个 java swing 项目时,出错如下 :
REM if "%XX_JAVA_OPTIONS%"=="" set XX_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m"
if "%XX_JAVA_OPTIONS%"=="" set XX_JAVA_OPTIONS="-Xms512m" "-Xmx1024m" "-XX:MaxPermSize=128m"
原因:JVM内存分配