开发者

Creating memory snapshot from inside the code (Java)

开发者 https://www.devze.com 2022-12-10 23:13 出处:网络
Is there a possibility, that from inside your program, by calling some java library, make java create memory snapshot of that program? (default .hprof file)开发者_如何学运维You can create a heap dump

Is there a possibility, that from inside your program, by calling some java library, make java create memory snapshot of that program? (default .hprof file)开发者_如何学运维


You can create a heap dump in your application using the example here.


You can do it via JMX - which means that you have to go out to come back in, so to speak. Details on how to do it via code are available here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号