question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

server freezes when a bedrock player joins, due to excessive CPU and RAM usage

See original GitHub issue

Describe the bug

Basically what the title says, the server CPU and RAM usage skyrockets when a bedrock client joins the server, causing the server to freeze and kick everyone after some time. Then, the server has to be killed because it doesn’t get fixed after everyone has been kicked, it just remains frozen.

To Reproduce

I don’t know what to put here

Expected behaviour

Normal CPU and RAM usage.

Screenshots / Videos

Normal CPU and RAM usage: image

CPU and RAM usage when a Bedrock client joins: image

Server Version and Plugins

Main server: [16:45:55 INFO]: This server is running Mohist version 1.12.2-225 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT, Forge version 14.23.5.2855) Plugins: WorldGuard, WorldEdit, Essentials, LightCleaner, Skript (and many addons), Citizens, BungeeGuard, Vault, Luckperms Mods: WorldEdit, Terra++, CubicChunks, CubicWorldGen, JourneyMap, Terramap

BungeeCord Proxy: Waterfall-1.17-448 Plugins: BungeeGuard, Floodgate (#19), Geyser (#781), ServerListPlus, ViaBackwards, ViaRewind, ViaVersion

Geyser Dump

https://dump.geysermc.org/CeHjcjeYDCkaq9Bl9pMG7VghFiDFMuyp

Geyser Version

Build #781

Minecraft: Bedrock Edition Version

1.17.1

Additional Context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
PIZZAAXXcommented, Jul 26, 2021

I’m waiting for my host to change the startup command since I can’t change it directly.

0reactions
Camotoycommented, Sep 15, 2021

More specifically: the exact issue here is very convoluted. ViaVersion takes sub-chunk packets from pre-1.16 and makes them into multi-block packets. Geyser currently has to take this information and divide it into 4096 individual packets. It would just be better in this case to have a Cubic Chunks designed for the 1.17 protocol - my vanilla 1.17 client didn’t have a fun time either. If someone would like to take a stab at improving this scenario, by all means, feel free, but the core team going to leave this specific scenario as-is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bedrock server crashes after every player disconnects - Mojang
Minecraft bedrock server always crashes after everybody disconnects from the game. ... The CPU and RAM usage is also normal. The crash log ......
Read more >
Minecraft Bedrock server hitting the ram limit and becoming ...
Hello, I am having an issue with my dedicated bedrock server. The server's ram usage continually increases until it hits the limit imposed ......
Read more >
Minecraft Bedrock Edition crashes when joining server.
The screen completely freezes in the middle of the connecting to multiplayer game loading screen. I cannot do anything but close the app....
Read more >
Resolve Minecraft Server Lag
Based on our experience, too high CPU usage is the main cause of lag. To maintain best performance, try to keep your CPU...
Read more >
Bedrock players can't play at all after the server is up for a few ...
None of these affects java players gameplay, only bedrock players unable to play. Im not sure if its a plugin problem or my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found