Hi,
we are facing some problems with mibew messenger. Average, we have 5 online operators and about 5 simultaneous conversations. Since some time, operators started to complain about "time-out, reconnectiong" problem.
I took a look into mysql logs and found a lots of slow queries from mibew, see below.
Our mibew instance is running on VPS (1.5GB RAM, CPU 2 core x 1250 MHz).
Anybody has any ideas, what can it be caused by? Could it be too many records in the database?
Mysql configuration:
max_connections = 100
thread_cache_size = 10
query_cache_limit = 1M
query_cache_size = 32M
tmp_table_size = 64M
max_heap_table_size = 64M
join_buffer_size = 256K
table_cache = 1024
interactive_timeout = 150
wait_timeout = 150
key_buffer_size = 64M
innodb_buffer_pool_size = 196M
Data base information:
/*Table Information*/
---------------------
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
----------------- ------ ------- ---------- ------ -------------- ----------- --------------- ------------ --------- -------------- ------------------- ----------- ---------- --------------- -------- -------------- ---------
chatban InnoDB 10 Compact 0 0 16384 0 0 102760448 1 2013-04-16 09:07:28 (NULL) (NULL) utf8_general_ci (NULL)
chatconfig InnoDB 10 Compact 32 512 16384 0 0 102760448 33 2013-04-16 09:07:28 (NULL) (NULL) utf8_general_ci (NULL)
chatgroup InnoDB 10 Compact 0 0 16384 0 0 102760448 1 2013-04-16 09:07:28 (NULL) (NULL) utf8_general_ci (NULL)
chatgroupoperator InnoDB 10 Compact 0 0 16384 0 0 102760448 (NULL) 2013-04-16 09:07:28 (NULL) (NULL) utf8_general_ci (NULL)
chatmessage InnoDB 10 Compact 379032 128 48840704 0 8929280 102760448 385592 2013-04-16 09:07:28 (NULL) (NULL) utf8_general_ci (NULL)
chatoperator InnoDB 10 Compact 10 1638 16384 0 0 102760448 14 2013-04-16 09:07:27 (NULL) (NULL) utf8_general_ci (NULL)
chatresponses InnoDB 10 Compact 51 321 16384 0 0 102760448 58 2013-04-16 09:07:28 (NULL) (NULL) utf8_general_ci (NULL)
chatrevision InnoDB 10 Compact 1 16384 16384 0 0 102760448 (NULL) 2013-04-16 09:07:27 (NULL) (NULL) utf8_general_ci (NULL)
chatthread InnoDB 10 Compact 18710 421 7880704 0 835584 102760448 17265 2013-04-16 09:07:27 (NULL) (NULL) utf8_general_ci (NULL)
Slow queries:
# Query_time: 6.885175 Lock_time: 0.000100 Rows_sent: 0 Rows_examined: 1
SET timestamp=1367832091;
update chatthread set lastpinguser=CURRENT_TIMESTAMP, userTyping=0 where threadid = 17260;
# Query_time: 6.629654 Lock_time: 0.000039 Rows_sent: 0 Rows_examined: 1
SET timestamp=1367832088;
update chatoperator set istatus = 0, dtmlastvisited = CURRENT_TIMESTAMP where operatorid = 13;
# Query_time: 3.893533 Lock_time: 0.000141 Rows_sent: 1 Rows_examined: 10
SET timestamp=1367831148;
select count(*) as total, min(unix_timestamp(CURRENT_TIMESTAMP)-unix_timestamp(dtmlastvisited)) as time from chatoperator where istatus = 0;
# Query_time: 3.250397 Lock_time: 0.000130 Rows_sent: 0 Rows_examined: 0
SET timestamp=1367832006;
insert into chatmessage (threadid,ikind,tmessage,tname,agentId,dtmcreated) values...
Thanks in advance for your help