码迷,mamicode.com
首页 > 其他好文 > 详细

Jmap 指令的用法

时间:2014-05-31 13:08:10      阅读:327      评论:0      收藏:0      [点我收藏+]

标签:c   style   blog   java   http   a   

 

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 指令的用法

标签:c   style   blog   java   http   a   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!