trickerer / Trinity-Bots

NPCBots for TrinityCore and AzerothCore 3.3.5
https://github.com/trickerer/TrinityCore-3.3.5-with-NPCBots/
472 stars 157 forks source link

[AC] [Bug] [Core] The issue of another increase in CPU usage of the Worldserver process #844

Closed moncat2005 closed 4 months ago

moncat2005 commented 4 months ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Current behaviour

After compiling using the https://github.com/trickerer/AzerothCore-wotlk-with-NPCBots/commit/4bdf5b7320e7874bb11232bfcfa17671ece8e302)version on June 29th, it was found that the CPU usage of the Worldserver process had once again increased. Under normal circumstances, when there were 5 online users, the CPU usage rate of WorldServer was around 30%, but it has now risen to over 80%. cpu-2024-07-04-02

At the same time, the last 500 diffs summary value displayed on the console has also significantly increased. cpu-2024-07-04-01

When normal the last 500 diffs summary value mean:12-15 median:11-12 percentiles:18,24,131

I am currently unable to determine whether this issue is caused by azerothcore or based on NPCBOTS. I just compiled a pure azerothcore version, and it seems that the resource usage is not high. The last 500 diffs summary value is also basically normal. But I am the only one testing online.

Expected behaviour

No response

Crashlog

No response

Steps to reproduce the problem

No response

TrinityCore or AzerothCore

AzerothCore

Core rev. hash/commit

AzerothCore rev. 4bdf5b7 2024-07-01 11:24:18 +0800 (npcbots_3.3.5 branch)

Operating system

ubuntu 18.04

moncat2005 commented 4 months ago

Confirmed. The increase in CPU usage of the Worldserver process this time is caused by game_event. eventEntry=72 (Fireworks Spectacular). The CPU usage and lag caused by this event will not automatically converge and release with the expiration of the event, and must be restarted to recover.