Skip Site Navigation «

dbrowse

app«dbrowse
MySQL

Server Threads

This node is informative, descriptive, functional and terminating.
[definitions]

Query Path

laz/threads

Interactive Path

Synopsis

This view displays a list of all active threads for the current database.

Node/View

Server laz: Active Threads.
mysql> show full processlist;
Thread Host DB Exec Time State Query
27 rows in set (0.0009 seconds)
5803 localhost laz Sleep 8 sec zzz...
5804 localhost laz Sleep 34 sec zzz...
5805 localhost laz Sleep 34 sec zzz...
5806 localhost laz Sleep 99 sec zzz...
5807 localhost laz Sleep 34 sec zzz...
5808 localhost laz Sleep 33 sec zzz...
5809 localhost laz Sleep 34 sec zzz...
5811 localhost laz Sleep 33 sec zzz...
5812 localhost laz Sleep 33 sec zzz...
5813 localhost laz Sleep 33 sec zzz...
5815 localhost laz Sleep 97 sec zzz...
5816 localhost laz Sleep 35 sec zzz...
5817 localhost laz Sleep 33 sec zzz...
5818 localhost laz Sleep 7 sec zzz...
5820 localhost laz Sleep 7 sec zzz...
5839 localhost laz Sleep 10275 sec zzz...
5856 localhost laz Sleep 16 sec zzz...
5857 localhost laz Sleep 9345 sec zzz...
5859 localhost laz Sleep 8708 sec zzz...
5863 localhost laz Sleep 7995 sec zzz...
5887 localhost laz Query 0 sec show full processlist
5888 localhost laz Sleep 1826 sec zzz...
5889 localhost laz Sleep 5742 sec zzz...
5910 localhost laz Sleep 391 sec zzz...
5921 localhost laz Sleep 2157 sec zzz...
5940 localhost laz Sleep 24 sec zzz...
5951 localhost laz Sleep 246 sec zzz...

[skip to the dbrowse Navigation information]

Description of Results

This page represents the same information you would receive if you ran the mysql> show processlist from the MySQL monitor program. Running the mysqladmin program with the processlist parameter will return the same results.

I have modified the output slightly to only return threads that are related to the current database. Depending on how you have your grant tables configured, and the privileges set for the user connecting to the server, you may see variations on these results. I have omitted the User column for this very reason, and for security purposes because this is live data you are looking at. See the MySQL access Privilege System for more information on security, privileges, and grant tables.

MySQL Terms

Thread
The thread ID for each client connection in the list. See also Thread ID from the Brief Server Status view.
Host
The host name for each thread. In these examples they are all localhost meaning the client and the server are on the same machine. For remote clients this field would indicate the connecting host followed by the port number, like this: host:port. More information on hosts, ports and networking sockets can be found at the Brief Server Status and Server Variables views.
DB
The active database.
Exec
The command being executed by the thread. Since many threads happen so quickly this field will most often show the command is sleeping, or waiting for a new command to execute. These types of threads are normally associated with persistent connections, which can provide better performance from the server.
Time
The time, in seconds, this thread has been active.
State
The state the thread is currently in. A full list of states and their meanings can be found at the Show Processlist MySQL Reference Manual section.
Query
The SQL query being processed (if any).

This is a terminating view for the active database. Try the interactive or query path navigation tools provided with this application or use your Web browser to return to the previous view.

Last updated: Tuesday, February 28th, 2006 @ 2:38 AM EST [2006-02-28T07:38:14Z]   home

(c) 2006-2008, Douglas W. Clifton, loadaveragezero.com, all rights reserved.