
On SAP ASE 15.7 and later, the monProcess and monProcessActivity monitoring tables can identify the processes with the largest recorded CPUTime values.
Check monitoring prerequisites
The KBA requires enable monitoring and wait event timing to be enabled for the monitoring tables to collect the necessary information. These settings are dynamic and do not require a reboot; review their use in the environment before changing them.
Query the process activity
The following read-only query joins process and activity records by SPID and KPID, then sorts CPUTime from highest to lowest:
SELECT TOP 10 p.Login, p.Application, p.Command, a.CPUTime
FROM monProcess p
JOIN monProcessActivity a
ON p.SPID = a.SPID AND p.KPID = a.KPID
ORDER BY a.CPUTime DESC;Use the result to identify which login, application and command to investigate. Treat it as recorded CPUTime from the monitoring data rather than a percentage of current host CPU.



