blob: 55565abfe1546441b22ca6b0b33bbaf7c54b5b68 [file] [log] [blame]
david_williamsdd54ab72009-12-29 08:16:09 +00001#!/bin/sh
2echo;
3echo " "`date`;
4
5PIDFILE=cc.pid
6
7
8echo;
9if [ -f ${PIDFILE} ] ; then
10 PID=`cat ${PIDFILE}`
11else
12 echo " PID file (${PIDFILE}) does not exist."
13 echo " Either CC not running, or PID file deleted"
14 exit 5
15fi
16 # I've found lsof is in /user/sbin on some machines
17 nhandles=`/usr/bin/lsof -p $PID | wc -l`
18 echo " Number of handles in wtp's CC process: $nhandles"
19 echo;
20 nthreads=`ps -mp $PID | wc -l`
21 echo " Number of threads in wtp's CC process: $nthreads"
22 echo;
23 top -c -b -n 1 -p$PID
24echo