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

如果能监控JVM对象内存分配情况就更完美了 #40

Open
techzealot opened this issue Aug 1, 2019 · 9 comments
Open

如果能监控JVM对象内存分配情况就更完美了 #40

techzealot opened this issue Aug 1, 2019 · 9 comments
Labels
enhancement New feature or request

Comments

@techzealot
Copy link

你想要的功能和某一个问题相关?请详细描述它。

应用GC很频繁但又没有好的手段快速准确定位问题

描述你想要的解决方式

类似https://github.com/Devexperts/aprof 监控对象分配热点便于优化GC

描述你所构想的解决方式

拦截构造器调用(可能不行,暂时没有好办法)

其他相关内容

类似Jprofiler的热点对象监控

@techzealot techzealot added the enhancement New feature or request label Aug 1, 2019
@LinShunKang
Copy link
Owner

你好,既然 aprof 和 JProfiler 已经有相关功能,为什么还想要在 MyPerf4J 中实现呢?
我看了 aprof 的实现原理,实现起来比较复杂,会对性能有一定的影响,不确定是否可以应用到生产环境中,我需要进一步了解情况,以便决定是否开发该功能。
感谢提供建议:)

@techzealot
Copy link
Author

Aprof已经几年没有维护了,Jprofiler用起来太复杂了,没有MyPerf4J这么直观高效

@techzealot
Copy link
Author

方法级监控MyPerf4J已经提供了非常有用的信息了,感觉对性能跟踪帮助很大,如果能增加对于GC方面的指导性线索基本完美了,这样一个框架就可以解决大部分问题了

@LinShunKang
Copy link
Owner

好的,我先调研看看,决定是否支持这个特性后我会回复你的

@techzealot
Copy link
Author

现在的监控工具大多只会监控各区内存变化,对于GC调优基本没有多少帮助,而线上dump又比较危险,解决GC问题基本上只能靠经验和运气了,没有令人眼前一亮的工具,期待MyPerf4J在这方面的加强

@LinShunKang
Copy link
Owner

嗯,好的,了解了

@wyyl1
Copy link

wyyl1 commented Sep 3, 2020

现在的监控工具大多只会监控各区内存变化,对于GC调优基本没有多少帮助,而线上dump又比较危险,解决GC问题基本上只能靠经验和运气了,没有令人眼前一亮的工具,期待MyPerf4J在这方面的加强

JFR

@JiaRG
Copy link
Contributor

JiaRG commented Mar 21, 2023

现在的监控工具大多只会监控各区内存变化,对于GC调优基本没有多少帮助,而线上dump又比较危险,解决GC问题基本上只能靠经验和运气了,没有令人眼前一亮的工具,期待MyPerf4J在这方面的加强

JFR

这玩意得jdk11了,功能很强大

@JiaRG
Copy link
Contributor

JiaRG commented Apr 22, 2023

是不是跟这个比较相似 https://github.com/google/allocation-instrumenter

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

No branches or pull requests

4 participants