Jvm内存工具
1,JConsole 位于 [JDK] bin 下,
2,代码查看当前进程堆内存
long maxMemory = Runtime.getRuntime().maxMemory();
long totalMemory = Runtime.getRuntime().totalMemory();
long freeMemory = Runtime.getRuntime().freeMemory();
System.out.println(maxMemory);
System.out.println(totalMemory);
System.out.println(freeMemory);
3,jmap 命令
http://blog.csdn.net/fenglibing/article/details/6411953
4,jvisualvm.exe (jvisualvm远程监控Tomcat)
http://ihuangweiwei.iteye.com/blog/1219302
扩展:
http://blog.sina.com.cn/s/blog_56fd58ab0100wga0.html JVM内存状况查看方法和分析工具