Minecraft Server on Windows PC is constantly lagging?

Va
- in Mods
9

I have a Minecraft server with a modpack with 235 mods running on my PC (32GB RAM) and it is always lagging. I have more than enough RAM. It's not my network. My internet is very fast. It just can't be that. But next to the log it says "Avg tick:" and sometimes there are numbers like "60,000ms" what could be the reason? As I said, my internet is very fast and I also use a LAN cable. I just don't know what it could be. Can someone help me there?

co

How much RAM have you allocated to your Minecraft server?

A mod server with that many mods would probably need 10 GB of RAM.

Va

8024MB so 8.024GB. Maybe should I allocate more RAM?

co

What does your current start script look like? Just send it in

Va

Java -Xmx8024M -Xms8024M -jar forge.jar do you mean that?

co

Yes. Use this instead of this:

@echo off
start "Mod Server" / min java -Xms10G -Xmx10G -XX: + UseG1GC -XX: + ParallelRefProcEnabled -XX: MaxGCPauseMillis = 200 -XX: + UnlockExperimentalVMOptions -XX: + DisableExplicitGC -XX: + AlwaysPreTouch -XX: G1NewSize = 30Percent = 30 XX: G1MaxNewSizePercent = 40 -XX: G1HeapRegionSize = 8M -XX: G1ReservePercent = 20 -XX: G1HeapWastePercent = 5 -XX: G1MixedGCCountTarget = 4 -XX: InitiatingHeapOccupancyPercent = 15 -XX: G1MixedPercentPercent = 5 -XX: 90XXpercentPercentPercent = 5 -XX: G1MixedGCLiveethrause = 5 -XX: 90XXedGCLiveethrause = 5 SurvivorRatio = 32 -XX: + PerfDisableSharedMem -XX: MaxTenuringThreshold = 1 -Dusing.aikars.flags = https://mcflags.emc.gs -Daikars.new.flags = true -jar forge.jar

(Pack that into a batch file. So e.g. Start.bat)

This should improve the performance of your mod server. If that is not enough, you should take a look at the utilization of your CPU. I can imagine that your CPU already has enough to do with the client (you). Then running a server could be too much. But try it out.

Va

This comment was deleted by the editing function.

Va

I start the server via cmd (command prompt) there I enter "cd C: / Server / FTB Revelation" then I enter "java -Xmx8024M -Xms8024M -jar forge.jar" Where do I have this "@echo off

start "Mod Server" / min java -Xms10G -Xmx10G -XX: + UseG1GC -XX: + ParallelRefProcEnabled -XX: MaxGCPauseMillis = 200 -XX: + UnlockExperimentalVMOptions -XX: + DisableExplicitGC -XX: + AlwaysPreTouch -XX: G1NewSize = 30Percent = 30 XX: G1MaxNewSizePercent = 40 -XX: G1HeapRegionSize = 8M -XX: G1ReservePercent = 20 -XX: G1HeapWastePercent = 5 -XX: G1MixedGCCountTarget = 4 -XX: InitiatingHeapOccupancyPercent = 15 -XX: G1MixedPercentPercent = 5 -XX: 90XXpercentPercentPercent = 5 -XX: G1MixedGCLiveethrause = 5 -XX: 90XXedGCLiveethrause = 5 SurvivorRatio = 32 -XX: + PerfDisableSharedMem -XX: MaxTenuringThreshold = 1 -Dusing.aikars.flags = https://mcflags.emc.gs/ -Daikars.new.flags = true -jar forge.jar "enter?

Va

Can't I just use this "java -Xmx12000M -Xms12000M -jar forge.jar"? Without all the bells and whistles with "XX: G1irgendwas"

co

If you only do this via cmd you only have to: "java -Xms10G -Xmx10G -XX: + UseG1GC -XX: + ParallelRefProcEnabled -XX: MaxGCPauseMillis = 200 -XX: + UnlockExperimentalVMOptions -XX: + DisableExplicitGC -XX: + AlwaysPreTouch -XX: G1NewSizePercent = 30 -XX: G1MaxNewSizePercent = 40 -XX: G1HeapRegionSize = 8M -XX: G1ReservePercent = 20 -XX: G1HeapWastePercent = 5 -XX: G1MixedGCCountTarget = 4 -XX: InitiatingHeapOccupGercentiveThrause = 90degionPancyPercentive: G1-XX: InitiatingHeapOccupGercentiveThrause = 15-XX: InitiatingHeapOccupGercentiveThrause = G1-XX: InitiatingHeapOccup-XXPercentiveThrause = 5 -XX: SurvivorRatio = 32 -XX: + PerfDisableSharedMem -XX: MaxTenuringThreshold = 1 -Dusing.aikars.flags = https://mcflags.emc.gs/ -Daikars.new.flags = true -jar forge.jar "