Set the process display name for Java-jar

Source: Internet
Author: User

Sometimes we use nohup Java-jar Xxx.jar to hang some executable Java application in the background, like a Windows service. But there is a bad place, in the Linux terminal with JPS display, all display as jar, as shown in:

This seems very unclear, do not know which jar corresponds to which application, of course, can be used ps-ef|grep Java , but usually run a lot of Java process on the server, execute a full screen is a dense word, want to further filter, but also add filter conditions.

Today, no intention to find a very simple way, you can directly let JPS show the real jar package name, simple to cry, say no one believe.

full path to the Java-jar jar package

For example: Java-jar /home/weblogic/test/hello.jar

Then you can, the effect is as follows:

Then JPS

Set the process display name for Java-jar

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.