Integrated: 6947: Allow executable name to show up in JPS

Alex Blewitt github.com+76791+alblue at openjdk.java.net
Wed Oct 28 18:35:42 UTC 2020


On Wed, 21 Oct 2020 10:28:05 GMT, Alex Blewitt <github.com+76791+alblue at openjdk.org> wrote:

> When executing `jps` to view running Java applications, the displayed name
> comes from a `sun.java.command` property. This is usually the name of the
> Main-Class when executing it with `java` directly, but Eclipse starts the JVM
> by using the native calls which bypasses this setting.
> 
> By adding a property definition `sun.java.command=JMC` then the application
> will show up appropriately in JPS.

This pull request has now been integrated.

Changeset: 84d1eb28
Author:    Alex Blewitt <alex.blewitt at gmail.com>
Committer: Marcus Hirt <hirt at openjdk.org>
URL:       https://git.openjdk.java.net/jmc/commit/84d1eb28
Stats:     1 line in 1 file changed: 1 ins; 0 del; 0 mod

6947: Allow executable name to show up in JPS

Reviewed-by: hirt

-------------

PR: https://git.openjdk.java.net/jmc/pull/137


More information about the jmc-dev mailing list