Jump to content

Score nearly crashed the server

Closed 1.5.11

RustyW
RustyW

Posted

The score nearly crashed the server with extreme spam (I have almost 9.5k players stored in data due to the yearly wipe). Once the score tried to process everything, I was left with:

BytesWithSize: Too big 13585388
Calling 'CheckScoreBoard' on 'SkillTree v1.5.11' took 9711ms
Calling 'CheckScoreBoard' on 'SkillTree v1.5.11' took average 34ms


After this, everything started failing (even BetterChat and other plugins). SkillTree the most, though:

8:44 PM Calling 'OnActiveItemChanged' on 'SkillTree v1.5.11' took average 1074ms

8:45 PM Calling 'DoLevel' on 'SkillTree v1.5.11' took average 1249ms

8:45 PM Calling 'DoLevel' on 'SkillTree v1.5.11' took average 1027ms

8:46 PM Calling 'DoLevel' on 'SkillTree v1.5.11' took average 1033ms

8:49 PM Calling 'OnActiveItemChanged' on 'SkillTree v1.5.11' took 184ms

8:50 PM Calling 'OnMeleeAttack' on 'SkillTree v1.5.11' took average 1052ms

8:53 PM Calling 'OnMeleeAttack' on 'SkillTree v1.5.11' took average 1086ms

8:54 PM Calling 'OnActiveItemChanged' on 'SkillTree v1.5.11' took average 1072ms

.... and so on.

I tried reloading the plugin, which created the next score spam. I reverted back to 1.5.10, which didn't stop the damage at this point either; only a server restart with 1.5.10 seems to have helped (I hope).

imthenewguy

Posted

There's no difference between the way the scores initialize in 1.5.11 and 1.5.10. Both open, read and close all data files int he SkillTree folder and store the score data into a dictionary when the plugin initializes.
Did you update the plugin after your server had already loaded?

Ive made changes to the next version to update to a coroutine so that it loads x profiles every game tick, rather than all profiles immediately on start.

 

RustyW

Posted

I updated it with the wipe before starting up the server. It ran for 45 minutes with no issues, and then the extremely long spam of all players came, followed by the "BytesWithSize" bit. After that, the server became unplayable.

RustyW

Posted

Hi, please close this ticket; it's no longer an issue.

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.