Monday Jun 30, 2008

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:~$

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