#B42.16.1 Dedicated Server - Server is too busy. Server will drop updates of vehicle's physics.

1 messages · Page 1 of 1 (latest)

elder citrus
#

Hi everyone, I’ve started running into an issue on my dedicated server (B42.16.1). At certain points, vehicles and players disappear for a moment, and the console displays the following message:

Server is too busy. Server will drop updates of vehicle's physics. Server is closed for new connections.

I’m not entirely sure what’s causing this. Earlier in the afternoon, we had 26 players online and everything was running smoothly. Later in the evening, with only 20-22 players, the message started appearing along with the lag. RAM and CPU usage don’t seem to be the problem—neither is hitting or even getting close to its maximum capacity.

Server Specs:

CPU: Ryzen 9 3950X x4 cores at 4.5ghz

RAM: 20 GB

Storage: NVMe 2.0 SSD

Also, I have a quick question: what exactly does the MaxPacketsPerSecond=300 option in the .ini file do?

#

When this starts happening, the entire server begins to experience a general delay. The chat continues to work, but the world itself lags out. Several players are also affected and get forcibly disconnected; in some cases, the server even prevents them from logging back in afterward.

terse mountain
#

Do you have any mods on the server? The error can be caused by various issues, usually if the server is slowed down by something, so it has to wait, causing the lag

#

The packets are basically the max allowed per player, to avoid too many being sent, the default is fine, unless you have any issues with packet limits being hit

elder citrus
#

i have around 10-15 QoL mods like simple silencers, Horticulture, Claim vehicle, etc

#

I have fewer mods to compare to the previous version, in any case. This is the first time I've encountered this error.

terse mountain
#

Unfortunately, I cannot help much if mods are in play, especially on the Unstable version

#

Since as said, the error just means the server is stuck doing calculations, can be caused by basically anything, system issues, mod issues

#

Misconfiguration can also cause it, check if you have periodic backups enabled

#

Some backups can take a very long time, which would cause problems

elder citrus
#

no backups :/, i tried everything i found on forums and internet

#

I've even lowered the maximum number of players.

terse mountain
#

Well, you can also check your CPU utilization and see if any cores are being maxed out?

elder citrus
#

60-150% of use with 24-26 players (max 400%) and RAM 12-16)/ 20 max

terse mountain
#

I was referring to single core usage

#

Not the total, because no app can multi thread everything

#

So once a single core is maxed out, you start bottlenecking

elder citrus
#

I don’t think I can check the per-core usage; it only shows up as a percentage, where 400% represents 4 cores. The weird thing is that sometimes we have 26 players online and everything runs perfectly. Is there any way to optimize this further? I’ve seen servers with 80+ players and mods running with zero issues.

srry for my english, not my firs languague

terse mountain
#

Usually those servers would have higher specs, not sure if the 4 cores is sufficient for that many players with mods

elder citrus
#

And of course, thank you for taking the time to explain! Now I have some ideas on how to optimize resources to see if I can get something done.

terse mountain
#

The mod just increases the RAM assignment, that is all that it does

#

It also uses some non-default Java flags for potential marginal performance gains, but at the cost of other issues being possible

#

Its best to just stick with the Java defalts, they are defaults for a reason

#

Generally a 4 core CPU should be able to run a server perfectly fine, so it is very unusual that you are hitting 400 percent usage at some point, I dont think I have ever managed to reach that with 6 cores

#

At most 10 percent total usage

#

So something would be very wrong with the system, its possible a mod is just locking the CPU usage, so removing it is a quick fix, more CPU is a secondary fix

elder citrus
#

@terse mountain I just found the cause of the lag spikes. It happens when you pick up a chicken and try to put it into an animal trailer; it triggers an infinite error loop in the console.

ERROR: General f:55006, t:1775346620543, st:450,174,569> IngameState.updateInternal> Exception thrown
java.lang.NullPointerException: Cannot invoke "zombie.characters.animals.IsoAnimal.getAnimalID()" because "mom" is null at IsoAnimal.reattachBackToMom(IsoAnimal.java:626).
Stack trace:
zombie.characters.animals.IsoAnimal.reattachBackToMom(IsoAnimal.java:626)
zombie.characters.animals.IsoAnimal.updateInternal(IsoAnimal.java:504)
zombie.characters.animals.IsoAnimal.update(IsoAnimal.java:441)
zombie.vehicles.BaseVehicle.update(BaseVehicle.java:3480)
zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:63)
zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:160)
zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2620)
zombie.iso.IsoCell.updateInternal(IsoCell.java:4844)
zombie.iso.IsoCell.update(IsoCell.java:4801)
zombie.iso.IsoWorld.updateWorld(IsoWorld.java:3255)
zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3347)
zombie.iso.IsoWorld.update(IsoWorld.java:3280)
zombie.gameStates.IngameState.updateInternal(IngameState.java:1477)
zombie.gameStates.IngameState.update(IngameState.java:1298)
zombie.network.GameServer.main(GameServer.java:1014)

terse mountain
#

If you do manage to reproduce it without mods, feel free to make a bug report on our forums

elder citrus
#

i tried without mod on localhost

#

It happens exactly when you pick up a chicken from a chicken hutch and try to put it into a trailer.

#

confirmed