I need ProtocolLib cpu usage optimization?
- [ ] This issue is not solved in a development build
Describe the bug cpu usage increasing unduly
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.
https://spark.lucko.me/m6AFF0F95D
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.
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.
Another thing I noticed is high command block usage about 5% per tick.