内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
01_linux
»
04_監視
»
zabbix
»
91 ZabbixのMySQLが遅い
トレース:
01_linux:04_監視:zabbix:91_zabbix_mysql_late
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 91 ZabbixのMySQLが遅い ====== テーブル分割して、innodb_buffer_pool_sizeとinnodb_log_file_sizeを増やしてみる <code console> # vi /etc/my.cnf innodb_file_per_table innodb_buffer_pool_size=512M innodb_log_file_size=128M </code> innodb_buffer_pool_sizeは、DBのみ動作の場合物理メモリの70%~80%程度 innodb_log_files_in_group×innodb_log_file_size < innodb_buffer_pool_size innodb_log_file_sizeを変更すると、InnoDBログファイルの作成しなおしが必要です。 古いInnoDBログファイルを削除、または移動してあげてからMySQLを起動すると、新しいサイズでInnoDBログファイルが作成されます。 <code console> # mv /var/lib/mysql/ib_logfile* /tmp/ </code> ===== MySQL ログ ===== <code> InnoDB: Error: log file ./ib_logfile0 is of different size 0 16777216 bytes InnoDB: than specified in the .cnf file 0 33554432 bytes! 140609 16:02:58 [Note] /usr/libexec/mysqld: ready for connections. Version: '5.0.77' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution 140609 16:03:08 [ERROR] /usr/libexec/mysqld: Incorrect information in file: './zabbix/nodes.frm' 140609 16:03:08 [ERROR] /usr/libexec/mysqld: Incorrect information in file: './zabbix/nodes.frm' 140609 16:03:08 [ERROR] /usr/libexec/mysqld: Incorrect information in file: './zabbix/sessions.frm' 140609 16:03:08 [ERROR] /usr/libexec/mysqld: Incorrect information in file: './zabbix/sessions.frm' 140609 16:03:08 [ERROR] /usr/libexec/mysqld: Incorrect information in file: './zabbix/users.frm' 140609 16:03:08 [ERROR] /usr/libexec/mysqld: Incorrect information in file: './zabbix/users.frm' ・ ・ ・ </code> {{tag>Innodb zabbix}}
01_linux/04_監視/zabbix/91_zabbix_mysql_late.txt
· 最終更新: 2016/10/17 08:23 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ