JVM Process Status (jps)

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
bleonard@opensolaris:~$

Comments:

wot? no GlassFish running? :)

Posted by Alexis MP on June 30, 2008 at 03:24 PM GMT #

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

Posted by Dan Price on June 30, 2008 at 11:02 PM GMT #

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

Posted by Brian Leonard on July 01, 2008 at 05:40 AM GMT #

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.

Posted by Dave Miner on July 01, 2008 at 10:28 AM GMT #

Done: http://defect.opensolaris.org/bz/show_bug.cgi?id=2425

Posted by Brian Leonard on July 11, 2008 at 01:00 PM GMT #

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.

Posted by David Comay on July 17, 2008 at 06:09 PM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today