[[MySQL]]

*最大接続数設定 [#l965a030]
 mysql> show global variables like 'max_connections';

*起動してからの累積接続数 [#kfa0ce4c]
 mysql> show global status like 'Connections';

*起動してからこれまでの最大同時接続数 [#aaf32407]
 mysql> show global status like 'Max_used_connections';

*threads 関連ステータス [#g7e12f8e]
 mysql> show global status like 'Thread_%';
 
 Threads_cached 
 キャッシュされているスレッド数(スレッドは使いまわされる)
 Threads_connected 
 現在の接続数
 Threads_created 
 接続を処理するために生成されたスレッド数(この値が増えまくるなら、cached が足りていない)
 Threads_running 
 スリープ状態になっていないスレッドの数

*プロセスを強制終了する [#be528e74]
 mysql>show processlist;   <--IDを確認
 mysql>kill 該当のID

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS