I would like to start a Minecraft Forge server, for this I installed a Forge server and so I start the server via the forge (…) .jar file. For example, if I explode large amounts of TNT on the server, the server would use up a huge amount of RAM. But according to the crash reports, the server is not allowed to pull out so much RAM. My question is: Where can I allocate more RAM to the server, since it can't just change a BAT file.
Because it can't just change a BAT file.
Yes, it can.
Since I don't have a BAT file in the folder, I can't.
You have to create it yourself.
I did it anyway, Forge only starts with the same small amount of RAM
This is the amount of RAM that is currently in use. What are actually "larger amounts of TNT"?
In Minecraft you can use "explosives". It demands a lot of RAM and thus a "small test". And in addition: the crash reports say: 1700MB of 1024 or so used, then the server crashes
What is the code like that you write in the start.bat?
What's in your .bat file?
Your .bat file should state how much RAM should be allocated to the server.
A .bat file should look like this…
-----------------------
java -Xmx1G -jar SERVER_FILE_NAME.jar
BREAK
-----------------------
- "Xmx1G" starts your server with 1GB RAM.
- "SERVER_FILE_NAME.jar" should contain the name of your Jar file. (e.g. Spigot-1.12.2.jar)
It is exactly the same with a normal server. But with a Forge Server you start an application as normal, then the server is online. I even have 4G in Xmx and 2G in Xmx, but Forge still starts with the few of around 1000mb
Please send the bat file once.
why it doesn't work with more that 1gb ram?
io ho fatto il file .bat ma non si apre