Problem How to change the maximum amount of ram for Direwolf20 1.18 server?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Acidpro08

New Member
May 15, 2022
3
0
2
Howdy, I downloaded and ran the server files, then to run the server you have to use the run.bat file and I guess not the start.bat, server works good but runs a little low on available ram. Currently it is set to 4096mb but I want to raise it to 8192mb. Within the run.bat file it says to add any JVM arguments to the user_jvm_args.txt file and to add ant custom program Args to the run.bat file. I added the command -Xmx8192M -Xms4096M to the user_jvm file and it did not seem to do anything. The server was still running with only 10-25% free ram left. Also tried -Xmx8G and just using Xmx8192M but nothing either. Any help is appreciated!
 

Attachments

  • 8d48b308da3f5fafc947b78e778b2eb4.png
    8d48b308da3f5fafc947b78e778b2eb4.png
    538.5 KB · Views: 456
  • d937ea443cae65f2ab15d93af0403bd3.png
    d937ea443cae65f2ab15d93af0403bd3.png
    317.3 KB · Views: 387
  • unnamed.jpg
    unnamed.jpg
    2 MB · Views: 486

MildyUsedGrapeFruit

New Member
May 24, 2022
1
1
2
So I had this issue and what worked for me is I removed the empty lines and pasted this mass of commands (they turn on garbage collection and help the server run well). I would post the link to the source creator of them, but apparently I can't post a link in my first 5 posts on this forum.

-XX:+UseG1GC -Xmx4G -Xms4G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

The -xmx4G is the max ram setting so just change that to the amount of ram you want. I'd also just copy the xmx to the xms as well. If you set the max to 8gb set the min to that too.
 
Last edited:
  • Like
Reactions: Acidpro08

Acidpro08

New Member
May 15, 2022
3
0
2
So I had this issue and what worked for me is I removed the empty lines and pasted this mass of commands (they turn on garbage collection and help the server run well). I would post the link to the source creator of them, but apparently I can't post a link in my first 5 posts on this forum.

-XX:+UseG1GC -Xmx4G -Xms4G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

The -xmx4G is the max ram setting so just change that to the amount of ram you want. I'd also just copy the xmx to the xms as well. If you set the max to 8gb set the min to that too.
Awesome! I pugged it in as you said and it works perfectly! Thanks man this helps us a lot.