# Collect information about threads with high CPU utilization in an observer process

2025-01-10 06:15:54  Updated

# Collect information about threads with high CPU utilization in an observer process

Description

You can query information about threads with high CPU utilization in an observer process on a cluster node.

Statement

ob_pid=$(pgrep observer|head -n 1); if [[ ! -z "$ob_pid" ]]; then top -H -b -n 2 -d 5 -p "$ob_pid" | tail -n +2 | grep "^top -" -A36 ; fi

Purpose

You can learn about the CPU utilization of a tenant thread, such as the TNT_L0_1001 thread, based on the collected information.

Contact Us