C
C
childsosadw2020-09-18 14:53:25
Java
childsosadw, 2020-09-18 14:53:25

Solving the question about the Minecraft server, how to solve it?

In general, I decided to try to create a Minecraft server. I'm not going to do a super-mega project, but I like the process. I myself am not strong in this, therefore I decided to turn to this forum for help. The essence of the problem is this: I can’t start the server, because there are some memory problems in Java, but I have repeatedly allocated memory and reinstalled Java itself, it didn’t help me. 5f649fa5a1ef3922503473.jpeg

Here is the text itself: Picked up _JAVA_OPTIONS: -Xmx512m
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Press any key to continue . . .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
acwartz, 2020-09-18
@acwartz

Since you are climbing to set restrictions manually, you must also specify a minimum.
-Xms256m -Xmx2048m
256 - initial.
2048 - total.
Your initial jvm chooses itself and cannot, because you yourself specified the limit.
And yes, 512 is not enough. It is necessary to issue a heap size under 4 GB, i.e. so:
ms512
mx4096

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question