Zaedrah Posted September 16, 2022 Posted September 16, 2022 (edited) Sorry if this has been asked before, I can't find the answer online. The "user_jvm_args.txt" explains how to do it somewhat, but I don't know where to put that line into. The txt file says this: # Xmx and Xms set the maximum and minimum RAM usage, respectively. # They can take any number, followed by an M or a G. # M means Megabyte, G means Gigabyte. # For example, to set the maximum to 3GB: -Xmx3G # To set the minimum to 2.5GB: -Xms2500M # A good default for a modded server is 4GB. # Uncomment the next line to set it. # -Xmx4G Thanks! Normally, I would just add the xml and xms into a jar file, but later versions of Forge don't have the jars. Edited September 16, 2022 by Zaedrah Quote
warjort Posted September 16, 2022 Posted September 16, 2022 (edited) Quote # A good default for a modded server is 4GB. # Uncomment the next line to set it. # -Xmx4G Seems pretty self explanatory to me? The # at the start of a line means it is a comment, you remove the # Edited September 16, 2022 by warjort Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
DaddyJ1977 Posted January 7, 2023 Posted January 7, 2023 I thought it was self explanatory as well except it didn't change the allocated ram. Any extra info would be appreciated. Quote
Oscaramelo Posted April 19, 2024 Posted April 19, 2024 i notice a change if i add the min and max ram in the line like this for example: # Xmx and Xms set the maximum and minimum RAM usage, respectively. # They can take any number, followed by an M or a G. # M means Megabyte, G means Gigabyte. # For example, to set the maximum to 3GB: -Xmx3G # To set the minimum to 2.5GB: -Xms2500M # A good default for a modded server is 4GB. # Uncomment the next line to set it. -Xmx10240M -Xms8192M i need to make more experiments but for now this apparently works. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.