Friday Dec 19, 2008

Getting Java program info on Solaris 10

If you have a Java application running and want to get the program arguments in a simplest possible way on Solaris 10.

for example if your java process id is 18346

bash-3.00$ jps
56286 Jps
18346 Test
bash-3.00$ pargs 18346
18346: ./java -XX:+UseSerialGC Test
argv[0]: ./java
argv[1]: -XX:+UseSerialGC
argv[2]: Test

to get heap usage
Use ptools with egrep.


bash-3.00$ pmap 18346 | egrep "heap|total"
00032000 56K rwx-- [ heap ]
00040000 3840K rwx-- [ heap ]
00400000 86016K rwx-- [ heap ]
total 178056K

About

I am Vikram Aroskar working in the Java team based out of India.

Search

Categories
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