My server is only plugged in because of plugins and worlds… But if I put up the RAM value during the start script, it is indicated that not enough RAM can be reserved. However, I have enough RAM free (picture attached). Why does not work, and how does it work?
How much memory does your PC have?
Which Java version do you have installed?
(Please send in CMD: java -version and the whole output)
Your server seems to be running on a VM. Are you sure you have assigned the RAM to your VM? If the RAM is only in the PC but the VM can't access it, it will not work.
In addition, you should still release about half of the operating system.
Memory: 8 GB (Is only a simple laptop, the server should stay private)
How do you get pictures in here?
With the right mouse button you can also mark things in the CMD
The fact that there's synonymous surprised me… The server is running eig. Not in a VM…
There would still be enough memory left for the operating system
Alright, then like that
The "VM" is a JVM (Java Virtual Machine), which is the way Java works.
This does not mean that it is a VM in the manner of VirtualBox or VMware or other.
Java version:
java version "1.8.0_191"
Java (TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot (TM) Client VM (build 25.191-b12, mixed mode)
Error message (the entire history):
C: \ Users \ CENSOR \ Desktop \ Minecraft Server> java -Xmx2048M -Xms2048M -jar spigot.jar nogui
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
C: \ Users \ CENSOR \ Desktop \ Minecraft Server> pause
Press any key…
Achso… Java should have enough memory, I just looked at a tutorial how to allocate more memory, does not know if that has worked 100%.
Can you post your .bat file here?
Please write to memory or ram, that puzzles me if you simply write memory.
Um, okay
Content from the file:
@REM Starts the server, 2048M stands for 2 GB of memory.
java -Xmx2048M -Xms2048M -jar spigot.jar nogui
Could it be that you have Java 32 bit installed?
Because my output from the CMD looks like this:
java version "1.8.0_191"
Java (TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot (TM) 64-bit Server VM (build 25.191-b12, mixed mode)
And in my case, I have Java 64 bit installed.
In order for Java to use more than 2GB of RAM, Java 64 bit should be used.
Check the whole thing again in which you look under which directory your Java is:
C: \ Program Files \ Java
C: \ Program Files (x86) \ Java
Try to open the above paths, where does an error occur?
None. One is the JDK, the other is JRE I think.
I just do not have any files from my server on my machine, they are all on my vServer.
But I think it's the M, does not it have to be MB or something like that?
Where is what?
No, otherwise it would not have worked with 1024M (ie 1GB).
32-bit: JRE
64-bit: JDK
Maybe that was not recognized and he has then automatically taken 1 GB
: o I'll give it a try
Nope does not work
Ok, your problem is that you have Java (Runtime Environment) 32bit.
Uninstall the 32 bit variant and take the Offline 64Bit installer: https://javadl.oracle.com/webapps/download/AutoDL?BundleId=235727_2787e4a523244c269598db4e85c51e0c
Look on the internet, I'm not sure if you have to add MB, but I think with only M does not work.
Uh, yes, I even have that with M from the internet.
I'll try.
It works.
Problem solved (Thanks TopicsLP), I had a 32bit Java version
If I were on the phone I would write Lach-Emojis.
Tip, by the way, nothing against the top of he tries to help yes but who has no idea of Java (bug fix) :)
^^
If you only assign 2048M to the server, it will not load 2096. Expand that time to 2048 - 4096. So he can choose how much RAM is needed.
Make sure you use 64bit Java
Java always runs in a virtual machine (JVM).
Question has already settled, had 32bit JRE.