onstat -g dbc command: Print dbScheduler and dbWorker thread statistics
Use the onstat -g dbc command to display statistics about the Scheduler tasks that are currently running, which are handled by dbWorker threads, or scheduled to be run, which are handled by the dbScheduler thread.
Example output
Output description
- Worker Thread
- Address of the worker thread in shared memory
- Task
- Name of the last executed task
- Task ID
- The task ID from the tk_id column in the sysadmin:ph_task table for this task
- Task Type
- Type of the task
- Last Error
- Error number, error message, time (in seconds), and task name from the last error the dbWorker thread encountered. It could be from the previously executed task or from a task executed days ago.
- Task Execution
- SQL statement or SPL procedure or routine executed as part of the task
- WORKER PROFILE
- The dbWorker thread profile data shows the total jobs executed, number of sensors executed, number of tasks executed, number of purge requests, and the number of rows purged from the result tables for all sensors executed by this dbWorker thread.
- Scheduler Thread
- Address of the scheduler thread in shared memory
- Run Queue
- The task ID for the next scheduled task. If no task is scheduled,
the value is
Empty
. - Run Queue Size
- The number of tasks that are waiting to be executed by the dbWorker thread
- Next Task
- The task ID of the next task that will be scheduled to be executed
- Next Task Waittime
- The number of seconds before the
Next Task
will be scheduled for execution