MySQL

最大接続数設定

mysql> show global variables like 'max_connections';

起動してからの累積接続数

mysql> show global status like 'Connections';

起動してからこれまでの最大同時接続数

mysql> show global status like 'Max_used_connections';

threads 関連ステータス

mysql> show global status like 'Thread_%';

Threads_cached 
キャッシュされているスレッド数(スレッドは使いまわされる)
Threads_connected 
現在の接続数
Threads_created 
接続を処理するために生成されたスレッド数(この値が増えまくるなら、cached が足りていない)
Threads_running 
スリープ状態になっていないスレッドの数

プロセスを強制終了する

mysql>show processlist;   <--IDを確認
mysql>kill 該当のID

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-30 (木) 01:40:11