10.14.1 Accessing the Process List (original) (raw)

10.14.1 Accessing the Process List

The following discussion enumerates the sources of process information, the privileges required to see process information, and describes the content of process list entries.

Sources of Process Information

Process information is available from these sources:

The threads table compares toSHOW PROCESSLIST,INFORMATION_SCHEMA PROCESSLIST, andmysqladmin processlist as follows:

For these reasons, DBAs who perform server monitoring using one of the other thread information sources may wish to monitor using the threads table instead.

The sys schemaprocesslist view presents information from the Performance Schemathreads table in a more accessible format. The sys schemasession view presents information about user sessions like thesys schemaprocesslist view, but with background processes filtered out.

Privileges Required to Access the Process List

For most sources of process information, if you have thePROCESS privilege, you can see all threads, even those belonging to other users. Otherwise (without the PROCESS privilege), nonanonymous users have access to information about their own threads but not threads for other users, and anonymous users have no access to thread information.

The Performance Schema threads table also provides thread information, but table access uses a different privilege model. SeeSection 29.12.21.8, “The threads Table”.

Content of Process List Entries

Each process list entry contains several pieces of information. The following list describes them using the labels from SHOW PROCESSLIST output. Other process information sources use similar labels.