News, tips, partners, and perspectives for the Oracle Solaris operating system

JVM Process Status (jps)

Guest Author

I frequently use jps to list my Java processes and was a bit dismayed when it didn't work on OpenSolaris. For some reason the Solaris installer doesn't create a link to the process. This fix is easy enough, from the command line enter:

pfexec ln -s /usr/java/bin/jps /usr/bin/jps

Now jps works like a charm:

bleonard@opensolaris:~$ jps -l
2100 org.jruby.Main
2256 sun.tools.jps.Jps
2078 org.netbeans.Main
1607 com.sun.javaws.Main

Join the discussion

Comments ( 5 )
  • Alexis MP Monday, June 30, 2008

    wot? no GlassFish running? :)

  • Dan Price Monday, June 30, 2008

    Can you file a bug against that at defect.opensolaris.org, please?

  • Brian Leonard Tuesday, July 1, 2008

    Dan, isn't this actually a bug in the JDK installer for Solaris?

  • Dave Miner Tuesday, July 1, 2008

    It's a bug in the package definition for SUNWj6dev, though it's because the Java SVR4 packages do all their linkification in postinstall scripts and IPS doesn't do that.

  • David Comay Thursday, July 17, 2008

    Just noticed that jps on Solaris (not OpenSolaris) isn't actually installed at all under /usr/bin. Perhaps it should be but this seems to be a generic Java issue and not specific to OpenSolaris.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.