Product Documentation

Knowledgebase

Previous Topic

Next Topic

prstat and Performance Monitoring on Solaris Operating Systems

The prstat utility can give a view of the FairCom DB process activity including user and system time and time waiting for locks.

  • The following shell script can be used to run prstat on the ctsrvr process at 5-second intervals. Specify the ctsrvr process id (PID) as the command-line option:

    #!/bin/csh

    prstat -Lmc -p $1 5 | nawk '$1=="PID" { "date" | getline d ; close("date"); print d} { print $0 }' > ctsrvr_prstat.log

  • The pstack utility is very useful for peering into the FairCom DB process. It writes call stacks for all of the FairCom DB threads. If you can run pstack on the ctsrvr process at times you observe long response times, it is possible to see exactly what code the threads are executing, and if they are waiting on any particular resources.

The example below is a script to call pstack. The ctsrvr process ID is the command-line argument:

#!/bin/csh


date >> ctsrvr_pstack.log

pstack $1 >> ctsrvr_pstack.log

TOCIndex