Skip to main content
Version: Stable-3.5

SHOW PROCESSLIST

SHOW PROCESSLIST lists the operations currently being performed by threads executing within the server. The current version of StarRocks only supports listing queries.

tip

This operation does not require privileges.

Syntax​

SHOW [FULL] PROCESSLIST

Parameter​

ParameterRequiredDescription
FULLNoIf you specify this parameter, the complete SQL statement will be displayed. Otherwise, only the first 100 characters of the statement are displayed.

Return​

ReturnDescription
ServerServer ID.
IdConnection ID.
UserThe name of the user who runs the operation.
HostThe hostname of the client which runs the operation.
DbThe name of the database where the operation is executed.
CommandThe type of the command.
ConnectionStartTimeTime when the connection starts.
TimeThe time (in second) since the operation has entered the current state.
StateThe state of the operation.
InfoThe command that the operation is executing.
IsPendingWhether the query is pending in the queue. Valid values: true and false.
WarehouseThe name of the warehouse where the query is executed.
CNGroupThe name of the compute node group where the query is run.
CatalogThe name of the catalog.
QueryIdThe qury ID if the Command is "Query".

Usage note​

If the current user is root, this statement lists the operations of all users in the cluster. Otherwise, only operations of the current user are listed.

Example​

Example 1: lists the operations state via the user root.

SHOW PROCESSLIST\G

*************************** 6. row ***************************
ServerName: starrocks-fe_9010_1782850099498
Id: 33560554
User: root
Host: 172.18.0.4:54818
Db:
Command: Query
ConnectionStartTime: 2026-07-02 01:21:14
Time: 0
State: OK
Info: show processlist
IsPending: false
Warehouse: default_warehouse
CNGroup:
Catalog: default_catalog
QueryId: 019f1eb3-246c-7899-ab3e-40a018645bba
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.