Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Usage and description of JDK built-in tools

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article focuses on "the usage and description of JDK built-in tools". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the usage and description of JDK built-in tools.

Javap

Java decompiler tool, mainly used to disassemble Java bytecode files into Java source code files

Usage: javap

Jps

Jps (Java Virtual Machine Process Status Tool) displays the command for all current Java processes pid

Usage: jps [options] [hostid]

Jstat

Jstat monitors Java virtual machine statistics

Usage: jstat-[- t] [- h] [[]]

For a detailed explanation of the header and other information in the command, please refer to the jstat command manual

Jcmd

The jcmd tool can replace the jps tool to view local JVM information

Usage: jcmd [pid | main-class] command. | | PerfCounter.print |

Jinfo

Jinfo can view all the parameters of the running JVM and set some parameters.

Usage:

Jinfo [option] pid

Jinfo [option] executable core

Jinfo [option] [server-id@] remote-hostname-or-ip

Jhat

Jhat, namely Java Heap Analyse Tool, is a command to analyze the Java heap, which can display the objects in the heap in the form of html. It supports the object query language OQL.

Usage: jhat [- stack] [- refs] [- port] [- baseline] [- debug] [- version] [- h/-help]

Jmap

Jmap prints the object in the memory of the Java process, or outputs the heap in JVM into text in binary

Usage:

Jmap [option] pid

Jmap [option] executable core

Jamp [option] [server-id@] remote-hostname-or-ip

Jstack

Jstack is a stack trace tool that prints Java stack information for a given Java process id or core file or remote debugging service. If you are on a 64-bit machine, you need to specify the option "- Jmur64".

Usage:

Jstack [option] pid

Jstack [option] executable core

Jsatck [option] [server-id@] remote-hostname-or-ip

Jconsole

Jconsole is JDK's built-in graphical Java performance analysis tool that can be run on the command line. Startup can be more Java process id to view the program's heap usage, thread conditions, class information and so on.

Jvisualvm

Jvisualvm is also a tool for graphical Java performance analysis. It exists in JDK6,JDK7,JDK8, and JDK9 has been removed since then. Of course, users can download it themselves through visualvm's official website.

At this point, I believe you have a deeper understanding of "the usage and description of JDK built-in tools". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report