Note
This view is available starting with V4.2.0.
Purpose
This view displays the status information of all threads in the observer process on each OBServer node. In a user tenant, it displays the relevant threads for the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the observer process. |
| SVR_PORT | NUMBER(38) | NO | The port number of the observer process. |
| TENANT_ID | NUMBER(38) | NO | The ID of the tenant to which the thread belongs. For process-level threads, the value is 500. |
| TID | NUMBER(38) | NO | The thread ID. |
| TNAME | VARCHAR2(16) | NO | The thread name. |
| STATUS | VARCHAR2(32) | NO | The thread status:
|
| LATCH_WAIT | VARCHAR2(16) | NO | The address that the thread is waiting for a latch. |
| LATCH_HOLD | VARCHAR2(256) | NO | The address that holds the latch (can contain multiple addresses). |
| TRACE_ID | VARCHAR2(40) | NO | The ID of the trace being executed by the thread. |
| CGROUP_PATH | VARCHAR2(256) | NO | The path of the cgroup to which the thread belongs. This field is obtained from the CPU line in the /proc/observer-pid/task/tid/cgroup path. |
Sample query
In a user tenant, query the status information of all threads in the observer process on each OBServer node and display the first two records.
obclient > SELECT * FROM SYS.GV$OB_THREAD WHERE ROWNUM <= 2;
The query result is as follows:
+----------------+----------+-----------+-------+-----------------+--------+------------+------------+------------------------------------+-------------+
| SVR_IP | SVR_PORT | TENANT_ID | TID | TNAME | STATUS | LATCH_WAIT | LATCH_HOLD | TRACE_ID | CGROUP_PATH |
+----------------+----------+-----------+-------+-----------------+--------+------------+------------+------------------------------------+-------------+
| xx.xx.xx.xx | 28824 | 1004 | 92964 | T1004_TTLTablet | Wait | NULL | NULL | Y70980BA1CCFB-00060E2D0E29CB5B-0-0 | NULL |
| xx.xx.xx.xx | 28824 | 1004 | 92832 | T1004_TTLManage | Wait | NULL | NULL | Y70980BA1CCFB-00060E2D0DF9CB5C-0-0 | NULL |
+----------------+----------+-----------+-------+-----------------+--------+------------+------------+------------------------------------+-------------+
2 rows in set
