JPS command-Use the detailed

Source: Internet
Author: User

JPS is a small tool that the JDK provides to view the current Java process, and can be viewed as an abbreviation for the javavirtual Machine process Status tool. Very simple and practical.

Command format: JPS [options] [HostID]

Options option:
-Q: Only VM identifiers are output, excluding Classname,jar name,arguments in Main method
-m: Output parameter of Main method
-L: Output full package name, application main class name, jar full path name
-V: Output JVM parameters
-V: The output passes through the flag file to a parameter in the JVM (. hotspotrc file or a file specified by-xx:flags=)
-joption: Passing parameters to the VM, for example:-j-xms512m

[HostID]:

[Protocol:] [[//]hostname] [:p ORT] [/ServerName]

Output format of the command:
Lvmid [[classname| Jarfilename | "Unknown"] [arg*] [jvmarg*]]

1) JPS

2) Jps–l: Output main class or jar full path name


3) Jps–v: output JVM Parameters


4) Jps–q: Only show Java process number

5) jps-mlv10.134.68.173


Note: If you need to see JVM processes on other machines, you need to start jstatd on the machine you want to view.

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.