For obvious reasons I frequently have multiple Swat or Vdbench processes running, and sometimes get confused as to what is what. 'ps' output is not very helpful. I can maybe compare the heap size values, but I don't always remember them:


hvxxxx 21027 21008 0 09:02:01 pts/12 0:06 java -Xmx512m -Xms128m -cp ./:./classes:./swat.jar:./javachart.jar:./swing-layo
hvxxxx 21060 21041 0 09:02:04 pts/6 0:03 java -Xmx1024m -Xms512m -cp ./:./classes:./swat.jar:./javachart.jar:./swing-lay


A primitive little trick now is making my life easier by using the -D java parameter. It shows me that I am running one background data collector and one local real time monitor (swat -c and swat -l)


hvxxxx 21102 21083 0 09:04:49 pts/12 0:07 java -Dreq=-c -Xmx512m -Xms128m -cp ./:./classes:./swat.jar:./javachart.jar:./s
hvxxxx 21240 21221 0 09:06:01 pts/6 0:34 java -Dreq=-l -Xmx1024m -Xms512m -cp ./:./classes:./swat.jar:./javachart.jar:./


Update to the swat script, you can make a similar change to the Vdbench script


if ("$1" == "-t" || "$1" == "-p" || "$1" == "-l") then
$java -Dreq=$1 -Xmx1024m -Xms512m -cp $cp Swt.swat $*
else
$java -Dreq=$1 -Xmx512m -Xms128m -cp $cp Swt.swat $*
endif



Henk.



Read More about [Vdbench and Swat: how to identify what is what when using 'ps -ef'...