Start.bat create file minecraft server?

Ca
- in Servers
20

Can someone tell me how i create the start.bat file to allocate more ram to my own minecraft server (1.15.2) create thank you in advance.

Dr

You only have to add 1 Java argument

-Xmx e.g. -Xmx2G for 2GB RAM

Ca

Should I save it in the server folder as a .bat or .jar file

Dr

The best thing to do is find out how to create a start.bat?

Ca

I've already created such a file but it doesn't work

Ca

With the command java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui.

Dr

Yes, then you have everything

Ca

Well i thought then i restarted the server but it shows me that it has so much ram

Dr

Then. Give him more at Xmx

e.g. Xmx4G for 4GB

Ca

But I only have 3gb

Dr

You are hosting a server with 3GB RAM.
Hallelujah.
I probably don't want to know the CPU, right? ^^

The server can of course only have as much RAM as you have free

Ca

1024m is about 1 gb

Dr

Are exactly 1GB, yes

Ca

And why doesn't it work so I start the server and in this folder the bat file should be correct

Dr

I have no idea what exactly you are doing and what is not working.

I can't help you like this

Ca

Hm ok understand anyway thanks.

Sy

You only change the RAM, not the file name

Ca

How far so I have the server called "server" with the other files in the folder and you should put a bat file with the name "start.bat" in the folder in this folder and this should be the command "java -Xmx1024M -Xms1024 -jar minecraft_server.jar "and then when you start the server it should have 1GB RAM available or😅

Dr

If you have the RAM free, yes.

Ca

Yes, I have max. 3GB available so yes I have 1 GB free

Sy

Is your jar file called minecraft_server.jar? In the start.bat the name of the server.jar must be written exactly as it is in the folder. If everything is entered correctly, the server should start by clicking on start.bat. If he doesn't, write what comes as a message.