首页 > 其他 > 详细

Jmap 指令的用法

时间:2014-05-31 13:07:42      阅读:454      评论:0      收藏:0      [点我收藏+]

 

Jmap 全称 Java Memory Map,用于打印出某个java进程(使用pid)内存内的,所有‘对象’的情况(如:产生那些对象,及其数量)。

Usage:
jmap [option] <pid>
(to connect to running process)
jmap [option] <executable <core>
(to connect to a core file)
jmap [option] [server_id@]<remote server IP or hostname>
(to connect to remote debug server)

where <option> is one of:
<none> to print same info as Solaris pmap
-heap to print java heap summary
-histo[:live] to print histogram of java object heap; if the "live"
suboption is specified, only count live objects
-permstat to print permanent generation statistics
-finalizerinfo to print information on objects awaiting finalization
-dump:<dump-options> to dump java heap in hprof binary format

 

下图是 Jmap -histo PID 的显示结果: 

bubuko.com,布布扣

Jmap 指令的用法,布布扣,bubuko.com

Jmap 指令的用法

原文:http://www.cnblogs.com/glasscat/p/3761252.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!