a860826341


win10 8g内存 该如何分配内存

java -XX:MaxPermSize=128m -Xms128m -Xmx3G

这是目前的

MIKAZE3
此帖有教程

java -Xmx4096M -Xms1024M -核心jar名字

a860826341
HTL9257 发表于 2018-6-16 00:16
java -Xmx4096M -Xms1024M -核心jar名字

Invalid maximum heap size: -Xmx4096M
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Little-C
a860826341 发表于 2018-6-16 07:48
Invalid maximum heap size: -Xmx4096M
The specified size exceeds the maximum representable size.
Er ...

java用的是32位的吧,32位的java最大只能使用1G(也就是1024M)内存,请更换64位java

a860826341
1208180423 发表于 2018-6-16 08:16
java用的是32位的吧,32位的java最大只能使用1G(也就是1024M)内存,请更换64位java ...

内存调到1024 后显示Cannot run server in a directory with ! or + in the pathname. Please rename the affected folders and try again.