ProtocolLib icon indicating copy to clipboard operation
ProtocolLib copied to clipboard

I need ProtocolLib cpu usage optimization?

Open Uaizi opened this issue 1 year ago • 3 comments

  • [ ] 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.

Uaizi avatar Oct 13 '24 18:10 Uaizi

https://spark.lucko.me/m6AFF0F95D

Uaizi avatar Oct 13 '24 18:10 Uaizi

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.

lukalt avatar Oct 20 '24 00:10 lukalt

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}

Ingrim4 avatar Oct 21 '24 21:10 Ingrim4