How can I set the process name for a Java-program? [duplicate]

I don’t know if this is possible, but you could use a command line tool that comes with the JDK called ‘jps’. It’s like *nix ps, but just Java programs instead. jps -v shows all the arguments you have passed to java.

Also, I have seen people attach a “process name” to their java processes by adding an unused -Dmyprocessname to the args.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)