Java 5.0 process snooping

I have not had much time to write on my weblog or even read other peoples weblogs lately. Of course, this means that I missed Calvin Austins post about the jps and jinfo commands.

From Calvins post, here is the output from running jinfo on a Java process.

# jinfo 1361
Attaching to process ID 1361, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.5.0-beta3-b60
Java System Properties:

java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path = /usr/java/jdk1.5.0/jre/lib/i386
java.vm.version = 1.5.0-beta3-b60
java.vm.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
path.separator = :
java.vm.name = Java HotSpot(TM) Client VM
file.encoding.pkg = sun.io
user.country = US
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /usr/java/jdk1.5.0/demo/jfc/Stylepad
java.runtime.version = 1.5.0-beta3-b60
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /usr/java/jdk1.5.0/jre/lib/endorsed
os.arch = i386
java.io.tmpdir = /tmp
line.separator = 

java.vm.specification.vendor = Sun Microsystems Inc.
os.name = Linux
sun.jnu.encoding = ISO-8859-1
java.library.path = /usr/java/jdk1.5.0/jre/lib/i386/client:
/usr/java/jdk1.5.0/jre/lib/i386:
/usr/java/jdk1.5.0/jre/../lib/i386
java.specification.name = Java Platform API Specification
java.class.version = 49.0
sun.management.compiler = HotSpot Client Compiler
os.version = 2.4.9-e.3smp
user.home = /root
user.timezone = 
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = ISO-8859-1
java.specification.version = 1.5
java.class.path = Stylepad.jar
user.name = root
java.vm.specification.version = 1.0
java.home = /usr/java/jdk1.5.0/jre
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Sun Microsystems Inc.
java.vm.info = mixed mode
java.version = 1.5.0-beta3
java.ext.dirs = /usr/java/jdk1.5.0/jre/lib/ext
sun.boot.class.path = /usr/java/jdk1.5.0/jre/lib/rt.jar:
/usr/java/jdk1.5.0/jre/lib/i18n.jar:
/usr/java/jdk1.5.0/jre/lib/sunrsasign.jar:
/usr/java/jdk1.5.0/jre/lib/jsse.jar:
/usr/java/jdk1.5.0/jre/lib/jce.jar:
/usr/java/jdk1.5.0/jre/lib/charsets.jar:
/usr/java/jdk1.5.0/jre/classes
java.vendor = Sun Microsystems Inc.
file.separator = /
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.cpu.isalist = 

VM Flags:


Dtrace, Zones, jps, jstack, jstat, jconsole, jmap....these are some of the upcoming technologies and tools which will definitely make my life alot easier. You can check out the docs concerning these Java tools here.
Comments:

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

moazam

Search

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