Information Schema PROCESSLIST Table
The Information Schema PROCESSLIST table contains detailed information about running threads, including their current state and execution time.
The Information Schema PROCESSLIST table contains information about running threads.
Similar information can also be returned with the SHOW [FULL] PROCESSLIST statement, or the mariadb-admin processlist command.
It contains the following columns:
ID
Connection identifier.
USER
MariaDB User.
HOST
The hostname from which this thread is connected.For Unix socket connections, localhost. For TCP/IP connections, the TCP port is appended (e.g. 192.168.1.17:58061 or other-host.company.com:58061). For system user, this column is blank ('').
DB
Default database, or NULL if none.
COMMAND
Type of command running, corresponding to the Com_ status variables. See Thread Command Values.
TIME
Seconds that the thread has spent on the current COMMAND so far.
STATE
Current state of the thread. See Thread States.
INFO
Statement the thread is executing, or NULL if none.
TIME_MS
Time in milliseconds with microsecond precision that the thread has spent on the current COMMAND so far (see more).
STAGE
The stage the process is currently in.
MAX_STAGE
The maximum number of stages.
PROGRESS
The progress of the process within the current stage (0-100%).
MEMORY_USED
Memory in bytes used by the thread.
MAX_MEMORY_USED
Maximum memory in bytes used by the thread.
EXAMINED_ROWS
Rows examined by the thread. Only updated by UPDATE, DELETE, and similar statements. For SELECT and other statements, the value remains zero.
SENT_ROWS
Number of rows sent by the statement being executed. From MariaDB 11.3.0.
QUERY_ID
Query ID.
INFO_BINARY
Binary data information
TID
Thread ID (MDEV-6756)
TMP_SPACE_USED
Note that as a difference to MySQL, in MariaDB the TIMEcolumn (and also the TIME_MS column) are not affected by any setting of @TIMESTAMP. This means that it can be reliably used also for threads that change @TIMESTAMP (such as the replication SQL thread). See also MySQL Bug #22047.
As a consequence of this, the TIME column ofSHOW FULL PROCESSLIST andINFORMATION_SCHEMA.PROCESSLIST cannot be used to determine if a slave is lagging behind. For this, use instead theSeconds_Behind_Master column in the output of SHOW REPLICA STATUS.
Note that the PROGRESS field from the information schema, and the PROGRESS field from SHOW PROCESSLIST display different results. SHOW PROCESSLIST shows the total progress, while the information schema shows the progress for the current stage only. To retrieve a similar "total" Progress value from information_schema.PROCESSLIST as the one from SHOW PROCESSLIST, use
Example
See Also
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

