What is the process of running a modded minecraft server Java arguments on PC without any complications?

218    Asked by AadityaSrivastva in Java , Asked on Sep 19, 2023

While trying to run modded minecraft server, we are getting a few modes to use. But I do not understand what I should to to make the server run smoothly. 


For now, the running process is not smooth. All the solutions we are getting seem outdated to us. Also, if someone can help me understand generally optimizing performance by using the current version of Java, that would be great. 


While according to LagGoggles the mobs can be the problem, the warm roast shows that something is making the game spend a large amount of time in pathfinding for sheep, and Update Time Light And Entities. 


So, I want to know if there is any mod which can optimize entity calculation as it will help me to focus on removing with configs. 


Even though the server is running on a computer having a Ryzen 2200G, 16 GB of DDR4-2666 RAM, and GTX 1060-6GB, we know the graphics card is not essential here. Also, We are using OpenJDK 8, with OpenJ9 JVM, and I am using the command: 


C:Program FilesAdoptOpenJDKjdk-8.0.242.08-openj9binjava.exe" -server -XX:+UseG1GC -Xmx8G -Xms8G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -jar forge-1.12.2-14.23.5.2847-universal.jar. ‘

But there is still a problem. Can I get any help regarding this? 

Most Minecraft server Java arguments are made of hobbyists, one of the common problems is that they call explicit garbage collection often. As a result, it consumes a huge CPU time. In that case, whenever you are running Minecraft JVM arguments adding the XX:+DisableExplicitGC is helpful. Here are some of the JVM arguments that you can run:


    java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=true -Daikars.new.flags=true -jar serverjargoeshere.jar

But remember these arguments are suitable for Minecraft versions 1.8 to 1.15. You can change the -Xmx and -Xms arguments depending on the amount of memory being used.





Your Answer

Interviews

Parent Categories