mojira.dev
BDS-19101

Entering a nether portal causes 100% CPU every time

Any player entering a nether portal causes 4000% CPU (100% across all CPUs) usage. The server does not crash but recovers after a few minutes and the nether successfully loads. The problem is that it should not take 40 cores 2-3 minutes to load the nether every time and for every player. There are no errors in the log. This is an almost new server, the nether was created near the spawn.

Linked issues

Attachments

Comments 25

Does this issue occur outside of BDS?

Not to my knowledge, however I did confirm that changing the thread count setting in the server config from 0 to 8 means that it only uses 800% CPU.

It also happening on 1.20.71

This problem has occurred on my server since many updates ago, probably 6 months or more. It seemed to get better with 1.20.64, slow to load through nether portals but did not crash the server. But since updating to 1.20.73, the crashes have started occurring again. Previous to 1.20.64, the crash would cause me to be at the entrance portal's coords in the dimension I was meant to be exiting to, so e.g. I go into portal in overworld at 100 64 2000, and end up on relog in the nether at 100 64 2000. Now when the server crashes it just takes me back in time by 30 seconds or so. CPU jumps to 700%, sometimes it will crash, other times is just takes ages to load as others see. Cannot replicate on single player world when use downloaded copy of the world and some portals perform better than others with varying levels of builds on either side of the portal. Server is hosted through Nodecraft, performance other than this portal issue is very good. Can answer questions if more info required.

15 more comments

Confirming I still have this issue on v1.21.23. Running on a Debian 12 VM on ESXi with plenty of power. All of my server players have this issue. I’ve had this issue running the server on Windows 11, Windows Server 2019, and Debian 12. Tried multiple setting and VM adjustments as well as kernel level adjustments and nothing seems to make it better. Just massive usage every time entering the nether. I’ll have 48 GHz of CPU Usage pulled just by my Minecraft VM.

I have this issue on my BDS as well and made a ticket about it last year here: BDS-19244

Interestingly, my server's issue is a bit different than the ones described here and at BDS-19359

I have the long nether loading time, which is alleviated when turning the render distance down. Also have chunks that refuse to load for 30+ seconds, which is present even with lowest render distance. (server render distance is 24 by default, I tried turning it to 5, same result.)

However, eating and flying are normal (not laggy as described in the other ticket). And notably, server CPU usage does not spike to 100% but goes up to around 60% for the duration of loading.

My server is hosted by Bisect Hosting and the "client-side-chunk-generation" option is not present in my server properties file

[media]

Also experiencing this issue on the server I play on.
 

Can confirm. I’m actually running two instances of bds from within docker containers. The one hitting 1,000% CPU usage has my player entering the nether.
Pretty sure that’s not supposed to happen.

[media]

this is fixed in 1.21.100 for me

anladwig

(Unassigned)

Confirmed

Retrieved