Java Tools:jmap

Source: Internet
Author: User

Synopsis

jmap [option] pid

Click here to see detail

DESCRIPTION

Jmap prints shared object memory maps or heap memory details of a given process or core file or a remote debug server. If the given process is running on a 64-bit VMS, you could need to specify THE-J-D64 option, e.g.:

Jmap-j-d64-heap PID

OPTIONS

<no option>
When the 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 OB ject file is printed. This was similar to the Solaris pmap utility.

-dump:[live,]format=b,file=<filename>
Dumps the Java heap in hprof binary format to filename. The live suboption is optional. If specified, only the live objects in the heap is dumped. To browse the heap dump, you can use Jhat (Java heap analysis Tool) to read the generated file.

-finalizerinfo
Prints information on objects awaiting finalization.

-heap
Prints a heap summary. GC algorithm used, heap configuration and generation wise heap usage is printed.

-histo[:live]
Prints a histogram of the heap. For each Java class, number of objects, memory size in bytes, and fully qualified class names is printed. VM internal class names is printed with ' * ' prefix. If the live suboption is specified, only live objects is counted.

-permstat
Prints 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 have loaded is printed. In addition, the number and size of interned Strings is printed.

-F
Force. Use with jmap-dump or Jmap-histo option if the PID does is not respond. The live Suboption is isn't supported in this mode.

-j<flag>
Passes <flag> to the Java Vsan on which Jmap is run.

Java Tools:jmap

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.