I having an issue with my 1.6 installation. I am monitoring ~2000 servers. I have my polling interval at 60s for most all items being monitored. I have the database running on a 4 core with 16G of ram server and disks are on the SAN. I have the zabbix server running on a VM with 2 cores and 4G of ram.
When I take a look at the queue size it doesn't seem that the database is able to keep up. I am trying to figure out where to start looking to find the problem. Nothing is complaining or logging errors to the log files on zabbix or in mysql.
Thoughts opinions?
Database Server:
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
mysql-server-4.1.20-2.RHEL4.1.0.1
my.cnf:
[mysqld]
#datadir=/var/lib/mysql
#socket=/var/lib/mysql/mysql.sock
datadir=/mysql/data
socket=/logs/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
#from my-innodb-heavy-4G
back_log = 50
max_connections = 200
max_allowed_packet = 512M
max_connect_errors = 10
binlog_cache_size = 1M
max_heap_table_size = 64M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 8
thread_concurrency = 8
query_cache_size = 64M
query_cache_limit = 2M
ft_min_word_len = 4
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
long_query_time = 2
innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size = 12G
innodb_data_file_path = ibdata1:128M;ibdata2:50M:autoextend:max:12800M
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 0
#innodb_flush_method=O_DIRECT
innodb_log_buffer_size = 8M
innodb_log_file_size = 1900M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = /mysql/logs/
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120
innodb_file_per_table
old_passwords=1
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
table_cache = 2048
results of mysqladmin -u root -p debug
Memory status:
Non-mmapped space allocated from system: 34119680
Number of free chunks: 13
Number of fastbin blocks: 0
Number of mmapped regions: 20
Space in mmapped regions: 993091584
Maximum total allocated space: 0
Space available in freed fastbin blocks: 0
Total allocated space: 33729776
Total free space: 389904
Top-most, releasable space: 134000
Estimated memory (with thread stack): 1028784128
Status information:
Current dir: /mysql/data/
Running threads: 63 Stack size: 196608
Current locks:
lock: 0x2dc7afaa90:
lock: 0x2dc7a2a9f0:
lock: 0x2dc7a1a980:
lock: 0x2bc5c00:
lock: 0x2c29840:
lock: 0x2dc7876960:
lock: 0x2dc7845620:
lock: 0x2dc7a61630:
lock: 0x2c93ac0:
lock: 0x336c8a0:
lock: 0x2dc7806460:
lock: 0x2dc7872020:
lock: 0x2dc7852210:
lock: 0x2dc7821f40:
lock: 0x2b61d90:
lock: 0x2baf1a0:
lock: 0x33800d0:
lock: 0x2dc78a1b50:
lock: 0x2bdbcb0:
lock: 0x2c2dad0:
lock: 0x336c9c0:
lock: 0x2dc7803a90:
lock: 0x2b74b10:
lock: 0x2dc7866910:
lock: 0x2dc7cf6ec0:
lock: 0x2bdcb50:
lock: 0x32295a0:
lock: 0x2bd7560: read
read : 0x2dc7a81738 (1155197280:1); 0x2dc7afe558 (1153390944:1); 0x2dc7ac85a8 (1151383904:1);
lock: 0x2bd05a0: read
read : 0x2dc7a00b98 (1155197280:1); 0x2bd0478 (1153390944:1); 0x2dc7ac9aa8 (1151383904:1);
Key caches:
default
Buffer_size: 8388600
Block_size: 1024
Division_limit: 100
Age_limit: 300
blocks used: 142
not flushed: 0
w_requests: 115068
writes: 0
r_requests: 157388
reads: 75707
handler status:
read_key: 21926665
read_next: 133012787
read_rnd 409064
read_first: 369486
write: 2493636
delete 0
update: 970152
Table status:
Opened tables: 1152
Open tables: 64
Open files: 6
Open streams: 0
Alarm status:
Active alarms: 59
Max used alarms: 64
Next alarm time: 28210
Thread database.table_name Locked/Waiting Lock_type
41 zabbix.items Locked - read Low priority read lock
41 zabbix.hosts Locked - read Low priority read lock
When I take a look at the queue size it doesn't seem that the database is able to keep up. I am trying to figure out where to start looking to find the problem. Nothing is complaining or logging errors to the log files on zabbix or in mysql.
Thoughts opinions?
Database Server:
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
mysql-server-4.1.20-2.RHEL4.1.0.1
my.cnf:
[mysqld]
#datadir=/var/lib/mysql
#socket=/var/lib/mysql/mysql.sock
datadir=/mysql/data
socket=/logs/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
#from my-innodb-heavy-4G
back_log = 50
max_connections = 200
max_allowed_packet = 512M
max_connect_errors = 10
binlog_cache_size = 1M
max_heap_table_size = 64M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 8
thread_concurrency = 8
query_cache_size = 64M
query_cache_limit = 2M
ft_min_word_len = 4
thread_stack = 192K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 64M
long_query_time = 2
innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size = 12G
innodb_data_file_path = ibdata1:128M;ibdata2:50M:autoextend:max:12800M
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 0
#innodb_flush_method=O_DIRECT
innodb_log_buffer_size = 8M
innodb_log_file_size = 1900M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = /mysql/logs/
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120
innodb_file_per_table
old_passwords=1
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
table_cache = 2048
results of mysqladmin -u root -p debug
Memory status:
Non-mmapped space allocated from system: 34119680
Number of free chunks: 13
Number of fastbin blocks: 0
Number of mmapped regions: 20
Space in mmapped regions: 993091584
Maximum total allocated space: 0
Space available in freed fastbin blocks: 0
Total allocated space: 33729776
Total free space: 389904
Top-most, releasable space: 134000
Estimated memory (with thread stack): 1028784128
Status information:
Current dir: /mysql/data/
Running threads: 63 Stack size: 196608
Current locks:
lock: 0x2dc7afaa90:
lock: 0x2dc7a2a9f0:
lock: 0x2dc7a1a980:
lock: 0x2bc5c00:
lock: 0x2c29840:
lock: 0x2dc7876960:
lock: 0x2dc7845620:
lock: 0x2dc7a61630:
lock: 0x2c93ac0:
lock: 0x336c8a0:
lock: 0x2dc7806460:
lock: 0x2dc7872020:
lock: 0x2dc7852210:
lock: 0x2dc7821f40:
lock: 0x2b61d90:
lock: 0x2baf1a0:
lock: 0x33800d0:
lock: 0x2dc78a1b50:
lock: 0x2bdbcb0:
lock: 0x2c2dad0:
lock: 0x336c9c0:
lock: 0x2dc7803a90:
lock: 0x2b74b10:
lock: 0x2dc7866910:
lock: 0x2dc7cf6ec0:
lock: 0x2bdcb50:
lock: 0x32295a0:
lock: 0x2bd7560: read
read : 0x2dc7a81738 (1155197280:1); 0x2dc7afe558 (1153390944:1); 0x2dc7ac85a8 (1151383904:1);
lock: 0x2bd05a0: read
read : 0x2dc7a00b98 (1155197280:1); 0x2bd0478 (1153390944:1); 0x2dc7ac9aa8 (1151383904:1);
Key caches:
default
Buffer_size: 8388600
Block_size: 1024
Division_limit: 100
Age_limit: 300
blocks used: 142
not flushed: 0
w_requests: 115068
writes: 0
r_requests: 157388
reads: 75707
handler status:
read_key: 21926665
read_next: 133012787
read_rnd 409064
read_first: 369486
write: 2493636
delete 0
update: 970152
Table status:
Opened tables: 1152
Open tables: 64
Open files: 6
Open streams: 0
Alarm status:
Active alarms: 59
Max used alarms: 64
Next alarm time: 28210
Thread database.table_name Locked/Waiting Lock_type
41 zabbix.items Locked - read Low priority read lock
41 zabbix.hosts Locked - read Low priority read lock
Comment