Java View tool Jmap-windows

Source: Internet
Author: User
Tags unsupported oracle solaris

Prints shared Object memory maps or heap memory details for a process, core file, or remote debug server. This command is experimental and unsupported.

Synopsis

Jmap [ Options ] PID

Jmap [ Optionsexecutable Core

Jmap [ Options ] [ PID ] Server-id@] remote-hostname-or-ip

Options

The command-line options. See Options.

Pid

The process ID for which the memory map was to be printed. The process must be a Java process. To get a list of Java processes running on a machine, use the jps (1) command.

Executable

The Java executable from which, the core dump was produced.

Core

The core file for which the memory map was to be printed.

Remote-hostname-or-ip

The Remote debug server hostname or IP address. See jsadebugd (1).

Server-id

An optional unique ID to use when multiple debug servers is running on the same remote host.

Description

The jmap  command prints shared object memory maps or heap memory details of a specifie D process, core file, or remote debug server. If The specified process is running in a 64-bit Java Virtual machine (JVM) and then you might need to specify The -j-d64 option, for Example: jmap  -j-d64-heap PID .

Note: This utility are unsupported and might not being available in the future releases of the JDK. On Windows Systems where dbgeng.dll the file isn't present, debugging tools for Windows must are installed to make these Tools Work. The environment variable should contain the location of the "the file" is used by the PATH jvm.dll target process or the LOC Ation from which the crash dump file is produced, for example: set PATH=%JDK_HOME%\jre\bin\client;%PATH% .

Options<no option>

When no option is used, the jmap command prints shared object mappings. For each shared object loaded in the target JVM, the start address, size of the mapping, and the full path of the shared O Bject file is printed. This behavior was similar to the Oracle Solaris pmap utility.

-dump:[live,] format=b, file= filename

Dumps the Java heap in hprof binary format to filename . The live suboption is optional and when specified, only the active objects in the heap was dumped. To browse the heap dump, you can use the jhat (1) command to read the generated file.

-finalizerinfo

Prints information about objects is awaiting finalization.

-heap

Prints a heap summary of the garbage collection used, the head configuration, and generation-wise heap usage. In addition, the number and size of interned Strings is printed.

-histo[:live]

Prints a histogram of the heap. For each Java class, the number of objects, memory size in bytes, and the fully qualified class names is printed. The JVM internal class names is printed with an asterisk (*) prefix. If live The suboption is specified and then only active objects is counted.

-clstats

Prints class Loader wise statistics of Java heap. For each class loader, their name, how active it was, address, parent class loader, and the number and size of classes it has Loaded is printed.

-F

Force. The use of this option, with the or option, is the jmap -dump jmap -histo PID does not respond. The suboption is not a supported in this live mode.

-H

Prints a help message.

-help

Prints a help message.

-J Flag

Passes to the flag Java Vsan where the jmap command is running.

Java View tool Jmap-windows

Related Article

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.