Why can I no longer assign ram to Minecraft servers?

La
- in Servers
4

I can no longer assign ram to my Minecraft server and I don't know why.

this is my Start.bat file. Java -Xmx1024M -Xms1024M -jar server.jar nogui)

there's always in the console then. Error occurred during initialization of VM

Initial heap size set to a larger value than the maximum heap size) if that helps I have 16gb ram

An

If I'm not mistaken, it should have something to do with an environment variable that has already been set in Windows. Apparently something has already been set there which leads to this error occurring. You would have to look at how you change or delete this variable.

La

But where can you have that "set" I do not understand exactly what you mean.

An

Go to Edit Environment Variables in Windows → In the "Advanced" page, click Environment Variables… → and there you look for whether _JAVA_OPTIONS has already been set somewhere. It could be that a certain amount of RAM has already been initialized for your computer and therefore that from the start.bat is ignored and the RAm is too little to start the server.
Unfortunately, I don't know how to explain it better.

La

Ok, I'll try that, thank you.