您的位置:首页 > 数据库 > Oracle

JDK监控和故障处理工具-jmap[转自Oracle]

2013-02-01 11:51 344 查看

jmap - Memory Map

Synopsis
Description
Options
See Also

SYNOPSIS

jmap [ option ] pid
jmap [ option ] executable core
jmap [ option ] [server-id@]remote-hostname-or-IP


PARAMETERS

optionOptions are mutually exclusive. Option, if used, should follow immediately after the command name.

pidprocess id for which the memory map is to be printed. The process must be a Java process. To get a list of Java processes running on a machine, jps may be used.

executableJava executable from which the core dump was produced.

corecore file for which the memory map is to be printed.

remote-hostname-or-IP

remote debug server's (see jsadebugd) hostname or IP address.

server-id

optional unique id, if multiple debug servers are running on the same remote host.

DESCRIPTION

jmap prints shared object memory maps or heap memory details of a given process or core file or a remote debug server.

NOTE - This utility is unsupported and may or may not be available in future versions of the J2SE SDK.

jmap is not currently available on Windows platforms or on the Linux Itanium platform.


OPTIONS

<no option>

When no option is used jmap prints shared object mappings. For each shared object loaded in the target VM, start address, the size of the mapping, and the full path of the shared object file are printed. This is similar
to the Solaris pmap utility.-heapPrints a heap summary. GC algorithm used, heap configuration and generation wise heap usage are printed.-histoPrints a histogram of the heap. For each Java class, number of objects, memory size in bytes, and fully qualified class names are printed. VM internal class names are printed with '*' prefix.-permstatPrints class loader wise statistics of permanent generation of Java heap. For each class loader, its name, liveness, address, parent class loader, and the number and size of classes it has loaded are printed.-hPrints a help message.

-helpPrints a help message.

SEE ALSO

pmap (1)
jps
jsadebugd

Copyright © 2004 Oracle and/or its affiliates. All rights reserved.



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: