Staging # top 14690 zabbix 16 0 2387m 581m 570m S 2.0 14.5 13:57.48 /opt/projetos/zabbix/server/sbin/zabbix_server: history syncer #1 [synced 632 items in 0.047713 sec, idle 5 sec] # strace -p 14690 semop(2129922, 0x7fffd5a95be0, 1) = 0 semop(2129922, 0x7fffd5a95be0, 1) = 0 time(NULL) = 1428217249 time(NULL) = 1428217249 time(NULL) = 1428217249 semop(2129922, 0x7fffd5a95be0, 1) = 0 semop(2129922, 0x7fffd5a95be0, 1) = 0 time(NULL) = 1428217249 time(NULL) = 1428217249 time(NULL) = 1428217249 semop(2129922, 0x7fffd5a95be0, 1) = 0 semop(2129922, 0x7fffd5a95be0, 1) = 0 # ltrace -p 14690 strcmp("history", "history_uint") = -1 strcmp("history_uint", "history_uint") = 0 strcmp("itemid", "itemid") = 0 malloc(256) = 0xfcafe00 strcmp("itemid", "clock") = 1 strcmp("clock", "clock") = 0 strcmp("itemid", "ns") = -1 strcmp("clock", "ns") = -1 strcmp("value", "ns") = 1 strcmp("ns", "ns") = 0 strcmp("itemid", "value") = -1 strcmp("clock", "value") = -1 strcmp("value", "value") = 0 malloc(256) = 0xfcafb50 free(0xfcafe00) = malloc(8) = 0xfcafa40 malloc(256) = 0xfcafe00 malloc(8) = 0xfcafd50 malloc(8) = 0xfcafd70 malloc(8) = 0xfcafd90 malloc(32) = 0xfcb2d90 malloc(256) = 0xfcb20e0 free(0xfcafa40) = free(0xfcafd50) = free(0xfcafd70) = free(0xfcafd90) = memset(0xfcafe00, '\000', 32) = 0xfcafe00 free(0xfcafe00) = malloc(8) = 0xfcafd90 malloc(256) = 0xfcafe00 malloc(8) = 0xfcafd70 # lsof -p 14690 zabbix_se 14690 zabbix 5u IPv4 982835502 0t0 TCP 10.10.5.177:12498->10.10.5.7:mysql (ESTABLISHED) # ls -l /proc/14690/fd lrwx------ 1 root root 1M Apr 5 04:20 5 -> socket:[982835502] # ipcs -s -i 2129922 semnum value ncount zcount pid 0 1 0 0 14621 1 1 0 0 14700 2 1 0 0 14690 3 1 0 0 14692 4 1 0 0 14698 5 1 0 0 14701 6 1 0 0 14621 7 1 0 0 14621 8 1 0 0 14688 9 1 0 0 14690 10 1 0 0 14621 11 1 0 0 14621 # log # /opt/projetos/zabbix/server/sbin/zabbix_server --runtime-control log_level_increase="14690" 14690:20150405:040616.893 history syncer #1 [synced 2602 items in 3.278455 sec, idle 1 sec] 14690:20150405:040617.894 history syncer #1 [synced 2602 items in 3.278455 sec, syncing history] 14690:20150405:040617.894 In DCsync_history() history_first:515908 history_num:1024 14690:20150405:040617.896 In DCmass_update_items() 14690:20150405:040617.903 In DCadd_nextcheck() 14690:20150405:040617.903 End of DCadd_nextcheck() 14690:20150405:040617.923 End of DCmass_update_items() 14690:20150405:040617.923 In DCmass_add_history() 14690:20150405:040617.924 query [txnlev:1] [insert into history (itemid,clock,ns,value) values ... 14690:20150405:040617.931 query [txnlev:1] [insert into history_uint ... 14690:20150405:040617.943 In DCget_nextid() table:'history_text' num:37 14690:20150405:040617.943 End of DCget_nextid() table:'history_text' [1237857:1237893] 14690:20150405:040617.943 query [txnlev:1] [insert into history_text ... 14690:20150405:040618.075 End of DCmass_add_history() # /opt/projetos/zabbix/server/sbin/zabbix_server --runtime-control log_level_decrease="14690"