We are facing intermittent high CPU issue in one of our Solaris server. There is an EPagent installed with these scripts - vmstat.pl and TopProcess.pl . vmstat shows overall high CPU utilization and TopProcess.pl shows top 10 pids.These scripts run every 10 mins.
Though vmstat shows high cpu utilization , say 98 %, the pids displayed by TopProcess.pl doesn't reflect that. I guess it is because of 1) the difference in execution time of these scripts - for eg - vmstat.pl takes around 2.5 secs to get executed whereas TopProcess.pl takes around 500ms to get executed. 2) high cpu is only a spike as it gets normal within milliseconds. vmstat and TopProcess must fetch data at one instant to get the pid which causes cpu spike.
Is there any resolution for this?