IT Japan

MySQL의 쓰레드와 접속자수 본문

MySQL

MySQL의 쓰레드와 접속자수

swhwang 2014. 11. 7. 14:28
반응형


최대접속수설정

mysql> show global variables like 'max_connections';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 150   |
+-----------------+-------+
1 row in set (0.00 sec)

기동하고 있는 누적접속수

mysql> show global status like 'Connections';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Connections   | 11862 |
+---------------+-------+
1 row in set (0.00 sec)

기동해서부터 지금까지의 최대접속수

mysql> show global status like 'Max_used_connections';
+----------------------+-------+
| Variable_name        | Value |
+----------------------+-------+
| Max_used_connections | 94    |
+----------------------+-------+
1 row in set (0.00 sec)

쓰레드 관련 상태

mysql> show global status like 'Thread_%';
+-------------------+-------+
| Variable_name     | Value |
+-------------------+-------+
| Threads_cached    | 1     |
| Threads_connected | 1     |
| Threads_created   | 2     |
| Threads_running   | 1     |
+-------------------+-------+
4 rows in set (0.00 sec)


반응형
Comments