简体   繁体   中英

Windows Java -Xmx and -Xms unable set by command prompt

i try to increase the java -Xmx and -Xms , i have try use the command to as

javaw -XX:+MaxPermSize=8192M  

it show Error message of Could not create the Java Virtual Machine. A fatal exception has occured.Program will exit

And also try to add new Environment Variable for java as

Variable name =_JAVA_OPTIONS
Variable value = Xmx8192M

After set finish i try to use the command to check for the MaxheapSize it show "0".

在运行应用程序时,您可以这样设置:

java -XX:PermSize=8192m -XX:MaxPermSize=8192m -jar application.jar 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM