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

High monitor usage due to Finalizer.add #1353

Closed
Karasiq opened this issue Jun 9, 2021 · 3 comments
Closed

High monitor usage due to Finalizer.add #1353

Karasiq opened this issue Jun 9, 2021 · 3 comments

Comments

@Karasiq
Copy link

Karasiq commented Jun 9, 2021

Hello! We updated our project to use the 5.8.0 with fixed #1211
But we still have too much monitor usage due to Memory finalizers. (and therefore high latency of api calls)

image
image
image

We solved it the with usage of the sun.misc.Cleaner instead of finalizers:
image
image

Code: https://github.com/wavesplatform/Waves/pull/3503/files
Obviously this solution is not very clean, since it's an internal Sun class, but it standard counterpart java.lang.ref.Cleaner is available only since Java 9.

@Karasiq
Copy link
Author

Karasiq commented Jun 9, 2021

image
Also same issue with LinkedReference.track

@matthiasblaesing
Copy link
Member

Could you please have a look/measurement at #1402? It might help with the issue.

@matthiasblaesing
Copy link
Member

Seems there is no more interest in this.

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

2 participants