The MySQL process list indicates the operations currently
being performed by the set of threads executing within the
server. The processlist and
x$processlist views summarize
process information. They provide more complete information
than the SHOW PROCESSLIST
statement and the INFORMATION_SCHEMA
PROCESSLIST table, and are also
nonblocking. By default, rows are sorted by descending process
time and descending wait time. For a comparison of process
information sources, see
Sources of Process Information.
The column descriptions here are brief. For additional
information, see the description of the Performance Schema
threads table at
Section 29.12.22.10, “The threads Table”.
The processlist and
x$processlist views have these
columns:
thd_idThe thread ID.
conn_idThe connection ID.
userThe thread user or thread name.
dbThe default database for the thread, or
NULLif there is none.commandFor foreground threads, the type of command the thread is executing on behalf of the client, or
Sleepif the session is idle.stateAn action, event, or state that indicates what the thread is doing.
timeThe time in seconds that the thread has been in its current state.
current_statementThe statement the thread is executing, or
NULLif it is not executing any statement.execution_engineThe query execution engine. The value is either
PRIMARYorSECONDARY. For use with MySQL HeatWave Service and MySQL HeatWave, where thePRIMARYengine isInnoDBandSECONDARYengine is MySQL HeatWave (RAPID). For MySQL Community Edition Server, MySQL Enterprise Edition Server (on-premise), and MySQL HeatWave Service without MySQL HeatWave, the value is alwaysPRIMARY.statement_latencyHow long the statement has been executing.
progressThe percentage of work completed for stages that support progress reporting. See Section 30.3, “sys Schema Progress Reporting”.
lock_latencyThe time spent waiting for locks by the current statement.
cpu_latencyThe time spent on CPU for the current thread.
rows_examinedThe number of rows read from storage engines by the current statement.
rows_sentThe number of rows returned by the current statement.
rows_affectedThe number of rows affected by the current statement.
tmp_tablesThe number of internal in-memory temporary tables created by the current statement.
tmp_disk_tablesThe number of internal on-disk temporary tables created by the current statement.
full_scanThe number of full table scans performed by the current statement.
last_statementThe last statement executed by the thread, if there is no currently executing statement or wait.
last_statement_latencyHow long the last statement executed.
current_memoryThe number of bytes allocated by the thread.
last_waitThe name of the most recent wait event for the thread.
last_wait_latencyThe wait time of the most recent wait event for the thread.
sourceThe source file and line number containing the instrumented code that produced the event.
trx_latencyThe wait time of the current transaction for the thread.
trx_stateThe state for the current transaction for the thread.
trx_autocommitWhether autocommit mode was enabled when the current transaction started.
pidThe client process ID.
program_nameThe client program name.