4

More RAM allocation on Server

EEmanDan 12/18/20 5:32 pm
414
12/26/2020 9:16 pm
Hello Forum folks, I have been recently playing around with minecraft! I am still rather new to how all of it operates but I am venturing into the world of servers. I primarily like the experience of creating my own server rather than renting or buying.


My goal for this is to create a modified server that runs RLCraft smoothly. I currently have a working (to my knowledge) RLCraft server but I am only getting allocated around 1024MB of ram. If I am not mistaken, this would seem to be the vanilla allocation for server ram. I have tried a few methods into changing these properties but when I run my .jar file it will revert to the default FML ( Forge Mod Loader ). I run my .jar file with a batch file with a java chunk of "

java -server - -Xms9096G -Xmx15G -jar RLCraftGroupMK2.jar nogui

PAUSE " and I can see the changes reflected within the console. I have noticed that I can modify the amount of RAM on my vanilla server but it would seem that I still reference the .minecraft pathway when I launch my forge server. I have scoured the internet for some answers and solutions but perhaps I am not familiar enough with servers to be asking intelligent questions.


Here is the console lines of interest:

"C:\GroupRLCraftMK2>java -server -Xms9216m -Xmx15G -jar RLCraftGroupMK2.jar
[13:08:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[13:08:06] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[13:08:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[13:08:06] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2838 for Minecraft 1.12.2 loading
[13:08:06] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_241, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_241
[13:08:06] [main/INFO] [FML]: Searching C:\GroupRLCraftMK2\.\mods for mods"


As aforementioned, I am able to run the server and utilize the mods within. I just can not run it smoothly, especially with another player.


I have a suspicion that I need to modify the FML launch wrapper or its inherent launch parameters. When I dive into the subsections

I find that I am unable to modify or delete the wrapper contents. I think my issue is that I am incorrectly referencing the .jar ?


My procedure is as follows:
  • I launch my batch file to initialize my server
  • I launch the Curseforge application
  • Click play on the RLCraft mod pack.
  • Enjoy the game until a mob spawns

The reason I used the curseforge application is to minimize the work done by the party of players I am working with.


Please let me know if there is anything I can do to fix my issues!

I appreciate anyone who takes the time to read my lengthy post!
Posted by
EEmanDan
Level 1 : New Miner
0

  Have something to say?

JoinSign in

6

Tootizard
12/26/2020 9:16 pm
Level 10 : Journeyman Crafter
EEmanDan,

Did you end up figuring this out? I had a problem similar to this on a skyfactory 4 server I hosted a while back. Turns out Windows 10 was limiting the way some applications consume RAM. I ended up changing the "Virtual Memory" settings within Control Panel > System and Security > System > Advanced System Settings > Advanced tab > Settings (inside performance section) > Advanced to "System Managed Size". Most people shouldn't be messing with those settings but mine were set to a low custom value. If that doesn't help, try setting a custom size equal to the amount of RAM installed on your computer.

This is one of the reasons I find hosting servers on a Linux computer a bit more convenient than Windows, most of the time they "just work" without any wierd OS changes.
2
star_weaver
12/18/2020 5:46 pm
She/Her • Level 27 : Expert Princess Button Pusher
remove the Xms part, i highly doubt you have over 9000GB of ram, and setting the maximum lower than the minimum tends to break things, also rlcraft is not known for running smoothly with world/chunk generation
1
EEmanDan
12/18/2020 6:21 pm
Level 1 : New Miner
Hello and thank you for responding. It was my understanding that m serves as the same as MB within java. Am I incorrect? If I am incorrect, why would the server launch despite the minimum heap memory size being greater than the maximum?

Thank you for reading.
1
star_weaver
12/18/2020 6:24 pm
She/Her • Level 27 : Expert Princess Button Pusher
java -server - -Xms9096G -Xmx15G -jar RLCraftGroupMK2.jar nogui

that is your startup line yes?
even still minimum is not needed
1
EEmanDan
12/18/2020 6:48 pm
Level 1 : New Miner
Yes, this is my startup line! I was under the impression that Xms will force the JVM to use the amount of RAM I specified within that line? I want it to run a pretty heft baseline of RAM. If I do not include that line, what will it default to? How do I ensure that the server runs optimally?

Thank you for reading!
1
EEmanDan
12/18/2020 8:11 pm
Level 1 : New Miner
I misread your subsequent response. No, my startup line is very similar but if you reference my previous comment or read my post you will see that my Xms is actually 9216m as in MB or 9 GB. I do apologize for the error on my part. I currently have a setup that allows 64GB of RAM and should not be an issue to allocate this amount! As was stated previously, I can run the server and all of the mods correctly, but I can not provide more hardware resources to it.

My issue resides with me not being able to launch the JVM at the desired amount of resources.

Thank you for reading.
1

Welcome