Invalid maximum heap size

  • Thread starter Thread starter /u/wawelski99
  • Start date Start date
U

/u/wawelski99

Guest
I wanted to run a minecraft paper server 1.21.11 on my laptop. I set it up, everything looks fine and I get this error:
Invalid maximum heap size: -Xmx4G

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.
Also, it worked on my previous laptop, but doesn`t work on this one. Here is the .bat file:
java -Xms2G -Xmx4G -jar papermc-server.jar

Edit: it works if i delete the -Xms and -Xmx flags, but then it automatically assigns the heap to: 676/5984

submitted by /u/wawelski99
[link] [comments]

Continue reading...
 
Back
Top