在Eclipse中查看活堆 [英] Viewing live heap in Eclipse

查看:167
本文介绍了在Eclipse中查看活堆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在执行eclipse时,是否可以看到Eclipse中的程序堆?是否有插件?

解决方案

我不知道是否有Eclipse插件,但如果重要的是获得信息,而不一定通过Eclipse,那么您可以使用 JVisualVM 来执行此操作,并且有几个插件,提供您想要的所有详细信息。



一的功能是您可以进行堆转储。



文档说:


浏览堆转储。当您需要浏览内容时的应用程序内存或在应用程序中发现内存泄漏,
您将发现内置的HeapWalker工具非常方便。它可以读取以hprof格式编写的
文件,并且还可以在OutOfMemoryException上浏览由JVM创建的堆转储



Is it possible to see the heap of a program in eclipse itself while it is executing? Is there a plugin for that?

解决方案

I don't know if there is an Eclipse plugin, but if what matters is getting the information and not necessarily through Eclipse then you can do that with JVisualVM, and there are several plugins that provide all the details that you want.

One of its features is that you can make a heap dump.

Documentation says:

Take and browse heap dumps. When you need to browse contents of application memory or uncover a memory leak in your application, you'll find the built-in HeapWalker tool really handy. It can read files written in hprof format and is also able to browse heap dumps created by the JVM on an OutOfMemoryException.

这篇关于在Eclipse中查看活堆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆