In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to find Java application process ID in Linux and Windows". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article "how to find Java application process ID in Linux and Windows" can help you solve the problem.
Find the Java application process ID in Linux
Issue commands on any Linux/Unix-style operating system:
Ps-ef | grep java
The above command will show all Java processes running on this machine and their parameters, process ID, and the user who started it.
The "PS" command displays all Java processes running on the Linux machine
The red highlight in the above figure indicates the process ID of all Java processes running on this EC2 instance. From here, you can get the process ID of the application.
Find the Java application process ID in Windows
The jps'-Java virtual machine process status tool is packaged in JDK. The tool will display all Java processes running on the machine. Here are the steps to invoke the "jps" command.
Open a command prompt.
Cd to the "bin" folder where JDK is installed
Issue the "jps" command
Example:
Cd C:\ Program Files\ Java\ jdk1.8.0_181\ binjps
The 'jps' command displays all Java processes running on the Windows machine
The red highlight in the above figure indicates the process ID of all Java processes running on this Windows instance. From here, you can get the process ID of the application. Notice that on my Windows machine, I have three Java processes running:
Jps-- the JVM process status tool I just started
Bootstrap-Tomcat server process
Org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar-Eclipse IDE
Note: unlike the "ps" command in Linux (the example given above), you won't see all the Java process parameters. One disadvantage of this approach is that 'jps' will display only the first command of the java process. You can see all the java process parameters only when you issue the 'ps' command.
This is the end of the introduction on "how to find the ID of Java application processes in Linux and Windows". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.