内存分析工具

IBM HeapAnalyzer

    A graphical tool for discovering possible Java heap leaks.(仅一个jar)

Memory Analyzer (MAT)

    The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.

JProfiler

    JProfiler is an award-winning all-in-one Java profiler. JProfiler's intuitive GUI helps you find performance bottlenecks, pin down memory leaks and resolve threading issues.

VisualVM

    JDK6/7提供的运行监视和故障处理程序,支持安装插件来扩展功能。可以从网上下载nbm包,从菜单“工具/插件/已下载”中手动安装插件;也可从“可用插件”列表中自动安装。

BTrace

BTrace is a safe, dynamic tracing tool for the Java platform. BTrace can be used to dynamically trace a running Java program (similar to DTrace for OpenSolaris applications and OS). BTrace dynamically instruments the classes of the target application to inject tracing code ("bytecode tracing"). Tracing code is expressed in Java programming language. There is also integration with DTrace for the OpenSolaris platform.

    BTrace可以独立运行,也可以作为VisualVM的插件(当前版本0.6.5)。它的作用是在不停止目标程序的前提下,通过HotSpot虚拟机的HotSwap技术动态加入调试代码,这对实际生产程序排查错误很有意义。

    在VisualVM中安装BTrace插件后,在要调试的程序上右键点击“Trace Application”菜单,将进入BTrace面板,里面会生成一小段代码。

 

你可能感兴趣的:(内存分析工具)