服务器过多实体或玩家过度跑图等引起的崩服导致
如果你服务器中的日志突然冒出一堆红色,且与下面的日志大致相同,那么,基本可以确定是由于玩家进服加载区块实体亦或者玩家过度跑图导致滞后行为导致的
[08:48:04] [Paper Watchdog Thread/ERROR]: The server has not responded for 10 seconds! Creating thread dump
[08:48:04] [Paper Watchdog Thread/ERROR]: ------------------------------
[08:48:04] [Paper Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Leaves!):
[08:48:04] [Paper Watchdog Thread/ERROR]: Ticking entity: minecraft:wither_skull, entity class: net.minecraft.world.entity.projectile.EntityWitherSkull
[08:48:04] [Paper Watchdog Thread/ERROR]: Entity status: removed: false, valid: true, alive: true, is passenger: false
[08:48:04] [Paper Watchdog Thread/ERROR]: Entity UUID: ab6d4d05-52eb-45d3-8806-0382956ccb3e
[08:48:04] [Paper Watchdog Thread/ERROR]: Position: world: 'world_the_end' at location (100.33570621075278, 108.07564312070423, 178.4572969714849)
[08:48:04] [Paper Watchdog Thread/ERROR]: Velocity: (-0.0012465256817283164, 0.6236484112003824, 1.7880878278078873) (in blocks per tick)
[08:48:04] [Paper Watchdog Thread/ERROR]: Entity AABB: AABB[100.17820968507105, 108.6992915319046, 180.0891347992928] -> [100.49070968507105, 109.0117915319046, 180.4016347992928]
[08:48:04] [Paper Watchdog Thread/ERROR]: ------------------------------
[08:48:04] [Paper Watchdog Thread/ERROR]: Current Thread: Server thread
[08:48:04] [Paper Watchdog Thread/ERROR]: PID: 40 | Suspended: false | Native: false | State: RUNNABLE
[08:48:04] [Paper Watchdog Thread/ERROR]: Stack:
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.Entity.canBeHitByProjectile(Entity.java:2296)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.projectile.Projectile.canHitEntity(Projectile.java:253)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.projectile.AbstractHurtingProjectile.canHitEntity(AbstractHurtingProjectile.java:144)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.projectile.EntityFireball$$Lambda/0x00007f94f694f320.test(Unknown Source)
[08:48:04] [Paper Watchdog Thread/ERROR]: io.papermc.paper.world.ChunkEntitySlices$EntityCollectionBySection.getEntitiesWithEnderDragonParts(ChunkEntitySlices.java:497)
[08:48:04] [Paper Watchdog Thread/ERROR]: io.papermc.paper.world.ChunkEntitySlices.getEntities(ChunkEntitySlices.java:260)
[08:48:04] [Paper Watchdog Thread/ERROR]: io.papermc.paper.chunk.system.entity.EntityLookup.getEntities(EntityLookup.java:596)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.level.Level.getEntities(Level.java:1529)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.projectile.ProjectileUtil.getEntityHitResult(ProjectileUtil.java:109)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.projectile.ProjectileUtil.getHitResult(ProjectileUtil.java:54)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.projectile.ProjectileUtil.getHitResultOnMoveVector(ProjectileUtil.java:35)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.entity.projectile.AbstractHurtingProjectile.tick(AbstractHurtingProjectile.java:98)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1412)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.level.ServerLevel.lambda$tick$8(ServerLevel.java:909)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.level.WorldServer$$Lambda/0x00007f94f655e700.accept(Unknown Source)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:42)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:886)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1708)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:451)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1519)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1226)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:314)
[08:48:04] [Paper Watchdog Thread/ERROR]: net.minecraft.server.MinecraftServer$$Lambda/0x00007f94f4b9f430.run(Unknown Source)
[08:48:04] [Paper Watchdog Thread/ERROR]: java.base@21.0.3/java.lang.Thread.runWith(Thread.java:1596)
[08:48:04] [Paper Watchdog Thread/ERROR]: java.base@21.0.3/java.lang.Thread.run(Thread.java:1583)
[08:48:04] [Paper Watchdog Thread/ERROR]: ------------------------------
[08:48:04] [Paper Watchdog Thread/ERROR]: --- DO NOT REPORT THIS TO LEAVES - THIS IS NOT A BUG OR A CRASH ---
[08:48:04] [Paper Watchdog Thread/ERROR]: ------------------------------
针对这种情况,有以下几种解决方案
- 升级服务器(最好是升级单核)【例如增强升级到→高频节点】
- 使用清除实体(最好是已经知道了卡顿是有什么实体造成)指令
- 删掉卡顿实体的区块
使用屏蔽插件屏蔽日志(治标不治本)- 使用优化插件如lagfixer亦或者其他插件/mod
- 这种情况一般也有内存溢出导致,所以使用回收内存的插件/mod/优化参数是最优解
Ps:回收内存的插件和mod效果可能微乎其微;优化参数有概率导致服务器报错!慎选!可以咨询管理
作者:xiaobei 创建时间:2025-06-21 20:52
最后编辑:xiaobei 更新时间:2025-06-24 14:36
最后编辑:xiaobei 更新时间:2025-06-24 14:36