当程序执行时,是否可以在 Eclipse 中看到程序的堆?有这个插件吗?
最佳答案
我不知道是否有 Eclipse 插件,但如果重要的是获取信息而不一定通过 Eclipse,那么您可以使用 JVisualVM 来做到这一点,还有几个plugins提供您想要的所有详细信息。
其中之一 features是你可以进行堆转储。
文档说:
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.
关于java - 在 Eclipse 中查看实时堆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11701337/