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

watch大量不存在的类对业务系统的性能是否会有影响? #465

Open
Aresxue opened this issue May 27, 2024 · 2 comments
Open

Comments

@Aresxue
Copy link

Aresxue commented May 27, 2024

主要是担心会加重jvm的负担间接影响性能,如果没有影响的话这里就能以一个比较松散的方式去使用jvm-sandbox了。

@z529192557
Copy link
Collaborator

需要举出具体的case,watch实际上无法对不存在的类生效,watch实例的数量会影响增强一瞬间的CPU负载,watch的不存在数量理论不会影响业务系统性能

@Aresxue
Copy link
Author

Aresxue commented Jun 27, 2024

需要举出具体的case,watch实际上无法对不存在的类生效,watch实例的数量会影响增强一瞬间的CPU负载,watch的不存在数量理论不会影响业务系统性能

因为我看到watch的listener是可以早于类加载的,那么就意味着这些监听是一直在运行的,我担心的是这些监听所带来的损耗,而非增强类的瞬间损耗,不存在的类也不会走到当然也不会对业务系统的性能有影响。

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