MySQLが使用するメモリを計算するのに毎回手動で計算するのはめんどいですよね。 なんかパールとかで設定ファイルよみこんで算出するツールとかもあるのですが、 パールいれるのすらめんどくさい。。。 ということでSQL一発で表示できるのを作ってみた。 詳細は以下。 メモリ計算式について 以下のサイト様から引用すると MySQLの必要なメモリ量は? 必要メモリ量=グローバルバッファのサイズ+(各スレッドのバッファサイズの合計 × 最大接続数(max_connections)) 各スレッドのバッファサイズの合計とは、以下の値の合計値です。 sort_buffer_size myisam_sort_buffer_size read_buffer_size join_buffer_size read_rnd_buffer_size グローバルバッファのサイズは、以下の値の合計値です。 key_buff