ProtocolLib

3M Downloads

I need ProtocolLib cpu usage optimization?

Uaizi opened this issue ยท 3 comments

commented
  • This issue is not solved in a development build

Describe the bug
cpu usage increasing unduly

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
My server seems to be fine, but above 40 players it has become impossible, ProtocolLib started to increase CPU usage in a surreal way, I can't understand why or identify the problem.

Screenshots
link to spark

Version Info
Provide your ProtocolLib install info with /protocol dump through pastebin.

Additional context
None, I'm completely lost and confused.

commented

Hi,

after reviewing the spark profile, I do not believe ProtocolLib is causing the performance problems you are observing.
For ProtocolLib, it mainly reports Epoll wakeup calls, which are not part of ProtocolLib itself but are associated with ProtocolLib due to the way ProtocoLib hooks into the server.

commented

I agree with @lukalt, since ProtocolLib is used by multiple plugins it's unlikely that ProtocolLib is at fault. Maybe try removing some of the heavier plugins like RealisticSeasons that use ProtocolLib work with chunks as the MSPT seem to roughly correlate to your increase in chunks.
{3683837C-F1B7-4D7F-9F73-2C6A520F83A5}

Another thing I noticed is high command block usage about 5% per tick.
{0D93EC43-2A73-43A0-951D-68A6F96920B6}