Skip to content

Conversation

@Hikari16665
Copy link
Contributor

Recently, I found that garbage collection is often stuck after adding this plugin to my server. After I performed heap dump, I found that a ConcurrentLinkedQueue with many nodes occupied most of the resources and could not be released.
After troubleshooting, I found the PermissionRegistry of PowerRanks. This queue is polled only once per tick during running. In some cases where permission requests are frequent (for example, in my game server), the queue will block, and then the game will get stuck.
This PR aims to eliminate this kind of stuck problem. By modifying the code and adding batch processing logic, the current code will poll 256 nodes at a time. After testing, the problem of stuck problem has been completely solved.

In addition, as for the problem of accidentally modifying pom.xml, the main reason is that if I don't modify it to this address, I can't build it. If it's unnecessary, you can roll back the modification.

@Hikari16665
Copy link
Contributor Author

Attachment:
876d022a8d88095bf5b4cb9a5ba1516e

Copy link
Member

@svenar-nl svenar-nl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :). The pom.xml changes are indeed necessary to successfully build PowerRanks due to a change in a remote repository, great catch.

@svenar-nl svenar-nl merged commit 57774ab into PowerNetworkHub:master Jun 5, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants