Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need ProtocolLib cpu usage optimization? #3276

Open
1 task
Uaizi opened this issue Oct 13, 2024 · 3 comments
Open
1 task

I need ProtocolLib cpu usage optimization? #3276

Uaizi opened this issue Oct 13, 2024 · 3 comments

Comments

@Uaizi
Copy link

Uaizi commented Oct 13, 2024

  • 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
Copy link
Author

Uaizi commented Oct 13, 2024

@lukalt
Copy link
Contributor

lukalt commented Oct 20, 2024

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.

@Ingrim4
Copy link
Collaborator

Ingrim4 commented Oct 21, 2024

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants