We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
我喜欢使用 SAP Memory Analyzer,它基于 Eclipse。 它工作得很好,也适用于大型堆转储!
I like to use SAP Memory Analyzer, which is based in Eclipse. It works very well, also for large heap dumps!
对于初步调查,您可以启动 jconsole 并将其附加到正在运行的进程。 这将允许您查看一段时间内的内存使用情况,甚至在生产中也是如此,包括垃圾收集,而不会受到分析器设置的完全影响。
For initial investigation, you can start jconsole and attach it to a running process. This will allow you to see memory usage over time even in production, including garbage collections without the full impact of a profiler setup.
SmartInspect 是一个分析器和记录器。 不特定于内存,但您可能想看一下。 它也适用于多种语言,包括 Delphi、Java 和 .NET。 包括其他更高级的功能。
SmartInspect is a profiler and logger. Not specific to memory, but you might want to take a look. It works with a variety of languages too, including Delphi, Java and .NET. Includes other more advanced features.
我使用过 YourKit Java Profiler 7.5 并且对它相当满意。 Java 最近发布的版本中包含一些非常好的工具,值得研究。 (例如,
jmap -histo
)I've used YourKit Java Profiler 7.5 and was reasonably happy with it. Java has some pretty good tools included with recent releases that are worth looking into. (e.g.,
jmap -histo <pid>
)我使用 Netbeans Profiler:
替代文本 http://www .netbeans.org/images/v6/1/features/profiler-java-cut.png
它是免费的,具有基于任务的分析、堆遍历器、允许插入分析点、跟踪内存使用情况和线程,但是最重要的是,它允许您分析远程 JVM。 您甚至可以附加到已经运行的程序。
哦,如果您也为您的项目构建了 Maven,那么它会非常有效。
I use Netbeans Profiler:
alt text http://www.netbeans.org/images/v6/1/features/profiler-java-cut.png
Its free, has task based profiling, a heap walker, allows the insertion of profiling points, tracks memory usage and threading, but best of all it allows you to profile remote JVM's. You can even attach to ones which are already running.
Oh, and it works really well if you've a maven build for your project too.
Eclipse Memory Analyzer 是分析 java 应用程序内存使用情况的最佳工具
The Eclipse Memory Analyzer is the best tool for analysing the memory usage of java applications
JProfiler 是一个非常好的工具。 它与所有主要 IDE 和应用程序服务器集成。
JProfiler is a really good one. It integrates with all the major IDEs and application servers.