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

What are the built-in tools for JDK5.0

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about what the JDK5.0 built-in tools are about. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Jstack, jconsole, jinfo, jmap, jdb, jstat, jps are added. Here is a brief introduction to these tools:

Jstack: if the java program crashes to generate a core file, the jstack tool can be used to get information about the java stack and native stack of the core file, so you can easily know how the java program crashed and where the program went wrong. In addition, the jstack tool can be attached to a running java program to see the java stack and native stack information of the running java program at that time. If the running java program presents the state of hung, jstack is very useful. Currently, it is only available in JDK versions of Solaris and Linux.

Jconsole:jconsole is a real-time graphical monitoring tool based on Java Management Extensions (JMX). This tool uses JMX instructions built into JVM to provide real-time performance and resource monitoring, including Java program memory usage, Heap size, thread status, class allocation status, space usage and so on.

Jinfo:jinfo can know the configuration information of crashed Java applications from the core file, which is currently available only in JDK versions of Solaris and Linux.

Jmap:jmap can get specific matches of memory from core files or processes, including Heap size, Perm size, and so on, which are currently available only in JDK versions of Solaris and Linux.

Jdb:jdb is used to debug core files and running Java processes in real time. It contains a wealth of commands to help you debug. Its function is very similar to dbx in Sun studio, but jdb is specifically designed for Java applications.

Jstat:jstat uses JVM built-in instructions to monitor the resources and performance of Java applications in real time, including monitoring Heap size and garbage collection, and so on.

Jps:jps is used to check the specific status of all processes in the JVM, including the process ID, the path to start the process, and so on.

In addition, there are other tools that are not listed here, such as Heap Analysis Tool, kill methods, and so on, which predate JDK5.0 and are also very useful performance tuning tools.

Thank you for reading! This is the end of this article on "what are the built-in tools for JDK5.0?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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

Development

Wechat

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

12
Report