The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.
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.
从JDK6开始提供的All-in-One Java Troubleshooting Tool,支持IDE集成,支持插件扩展功能。可以从菜单“工具/插件/可用插件“中选择安装,也可从Plugins Centers下载插件,从菜单“工具/插件/已下载”中手动安装。
VisualVM Documentation and Resources
Working with Local Applications
Working with Remote Applications
Connecting to JMX Agents Explicitly
Monitoring and Management Using JMX Technology
另外可借助操作系统提供的一些工具,比如top,vmstat,iostat等。
vmstat命令是最常见的Linux/Unix监控工具,可以展现给定时间间隔的服务器状态,包括CPU使用率,内存使用,虚拟内存交换情况,IO读写情况,请参见Linux vmstat命令实战详解