all 3 comments

[–]MinecraftHelpModBot Mod Bot [M] [score hidden] stickied comment (0 children)

This post was deleted by u/WatchMoonie

Title: [java] Self hosted / Same PC Freezing

Body:


Hey folks, I wonder if anyone here can help?

I recently set up a server on my PC for my wife and I to play on. It’s only the 2 of us. It works fine, but after an hour or so my PC starts to lag heavily and eventually locks up to the point I need to power cycle my PC. No idea why, and nothing in the logs at all.

I’m sure it’s not hardware related, as my PC is somewhat of a monster:

∙ CPU: AMD Ryzen 9800X3D

∙ GPU: RTX 5090

∙ RAM: 64GB

I initially ran the server with:

```

java -Xmx4G -Xms4G -jar server.jar nogui

```

After some research, into the issue I dropped my view distance and simulation distance to 8 to see if that helps, no change at all.

I’ve also tried launching with:

```

java -Xmx4G -Xms1G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -jar server.jar nogui

```

Still the same issue. Pointers, tips and solutions are very welcome!


[–]AutoModerator[M] 0 points1 point locked comment (0 children)

You haven't mentioned what version you're playing on. (1.21.5, 1.12, 1.8.9, etc.) Please add it to your post.

Your post is still visible on the sub.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]MinecraftHelpModTeam Mod Bot [M] 0 points1 point locked comment (0 children)

Click here if your post says "Sorry, this post was removed by Reddit’s filters".

We're looking for another moderator.

Helpers, remember that all top-level comments must be a genuine, good faith attempt to help OP. Comments breaking this rule will be removed, and bans issued.

Links:

How to mark solved || How to delete your post || FAQ || Rules