반응형
Notice
Recent Posts
Recent Comments
Link
IT Japan
MySQL의 쓰레드와 접속자수 본문
반응형
최대접속수설정
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)
반응형
'MySQL' 카테고리의 다른 글
MySQL Connectors and APIs (0) | 2014.11.17 |
---|---|
MySQL에서 데이터베이스 사이즈 확인하기 (0) | 2014.11.17 |
MySQL에서 Store Procedure의 목록을 알아보는 방법 (0) | 2014.11.07 |
mysql Error 1129 (0) | 2014.10.30 |
MySQL 파티셔닝의 설정,추가,삭제,재구성 (0) | 2014.10.27 |
Comments