In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to use the jps command in java, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Jps (Java Virtual Machine Process Status Tool)
Java is a command that displays the pid of all current java processes. It is suitable for simply viewing some simple situations of the current java process on the linux/unix platform.
Many people have used the ps command in the unix system, which is mainly used to show the process of the current system, what processes there are and the process id.
The same is true of jps, its function is to display the current system's java process and process id.
We can use it to see how many java processes we started (because each java program owns an instance of the java virtual machine)
And you can view the detailed startup parameters of these processes through opt.
1. How to use it:
Note: type jps under the current command line (jps is stored in JAVA_HOME/bin/jps, and JAVA_HOME/bin/ needs to be added to Path for convenience).
$> jps
23991 Jps
23651 Resin
two。 Common parameters:
-Q displays only pid, not class name, jar file name, and parameters passed to the main method
$> jps-Q
28680
23789
-m outputs the parameters passed to the main method, which may be null on the embedded jvm
$> jps-m
28715 Jps-m
23789 BossMain
-l output the full package name of the application main class or the full pathname of the jar file of the application
$> jps-l
28729 sun.tools.jps.Jps
23789 com.asiainfo.aimc.bossbi.BossMain
23651
23651 Resin-socketwait 32768-stdout / resin/log/stdout.log-stderr / resin/log/stderr.log
23651 com.caucho.server.resin.Resin
-v outputs the parameters passed to JVM
$> jps-v
-V hides the parameters passed to the JVM from the output
$> jps-V
The above is all the contents of the article "how to use jps commands in java". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.