ILove jps!

At Sun, instead of desktops, we have SunRays. Because we're all really working on a central server, we all see each other's processes. When something goes wonky, it can be a pain to track down its PID to kill it, especially if it was spawned from a source process which then went away, which is the way most graphical tools seem to work these days. The situation gets doubly complicated when the process is a JVM, because then I have to figure out which JVM is running the class that represents the tool I want to kill. Matters are further complicated by the fact that the command line for most Java™ processes is so long these days that ps doesn't show enough of it to be tell what it's running.

All that goes away with the J2SE 5.0 platform and the new, experimental monitoring commands, like jps. With the J2SE 5.0 platform, I just run jps -l, and it shows me the running JVM's and what they are running. I'm probably late to the party and preaching to the choir, but if you've been living under a rock and haven't tried the J2SE 5.0 platform, run, don't walk, to the download center nearest you. You'll be glad you did.

Comments:

Post a Comment:
Comments are closed for this entry.
About

templedf

Search

Archives
« April 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
   
       
Today