chadd wrote:gandalf wrote:Please try two different things, one after the other:
1. Decrease number of processes * number of threads, e.g. use 1 process an 10 threads only
2. increase mysql max_connections to e.g. 500 and restart mysqld/httpd afterwards
R.
mysql> show variables like "max_connections";
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 500 |
+-----------------+-------+
1 row in set (0.01 sec)
mysql>
Already at 500 max_connections, but I did decrease the threads to 10. Will let you know what happens.
Still happening.. Not as much (I think), but here are the log entries:
11/02/2012 12:41:37 PM - SPINE: Poller[0] ERROR: SQL Failed! Error:'2013', Message:'Lost connection to MySQL server during query', SQL Fragment:'INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (449942,'cisco_memused','2012-11-02 12:41:36','48114060'),(449941,'cisco_memfree','2012-11-02 12:41:36','139577388'),(449940,'oneMin','2012-11-02 12:41:36','U'),(449940,'fiveMin','2012-11-02 12:41:36','U'),(449939,'errors_out','2012-11-02 12:41:36','0'),(449939,'discards_out','2012-11-02 12:41:36','0'),(449939,'discards_in','2012-11-02 12:41:36','0'),(449939,'errors_in','2012-11-02 12:41:36','0'),(449938,'errors_out','2012-11-02 12:41:36','0'),(449938,'discards_out','2012-11-02 12:41:36','0'),(449938,'discards_in','2012-11-02 12:41:36','0'),(449938,'errors_in','2012-11-02 12:41:36','0'),(449937,'errors_out','2012-11-02 12:41:36','0'),(449937,'discards_out','2012-11-02 12:41:36','0'),(449937,'discards_in','2012-11-02 12:41:36','0'),(449937,'errors_in','2012-11-02 12:41:36','0'),(449936,'errors_out','2012-11-02 12:41:36','0'),(449936,'discards_out','2012-11-02 12:41:36','0'),(449936,'discards_in','2012-11-02 12:41:36','0'),(449936,'errors'
11/02/2012 12:01:35 PM - SPINE: Poller[0] ERROR: SQL Failed! Error:'2013', Message:'Lost connection to MySQL server during query', SQL Fragment:'INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (451119,'ProcMem_Nexus','2012-11-02 12:01:35','16'),(451118,'5min_cpu_nexus','2012-11-02 12:01:35','5'),(451117,'errors_out','2012-11-02 12:01:35','0'),(451117,'discards_out','2012-11-02 12:01:35','0'),(451117,'discards_in','2012-11-02 12:01:35','0'),(451117,'errors_in','2012-11-02 12:01:35','0'),(451116,'errors_out','2012-11-02 12:01:35','0'),(451116,'discards_out','2012-11-02 12:01:35','0'),(451116,'discards_in','2012-11-02 12:01:35','0'),(451116,'errors_in','2012-11-02 12:01:35','0'),(451115,'errors_out','2012-11-02 12:01:35','0'),(451115,'discards_out','2012-11-02 12:01:35','0'),(451115,'discards_in','2012-11-02 12:01:35','0'),(451115,'errors_in','2012-11-02 12:01:35','0'),(451114,'errors_out','2012-11-02 12:01:35','0'),(451114,'discards_out','2012-11-02 12:01:35','0'),(451114,'discards_in','2012-11-02 12:01:35','0'),(451114,'errors_in','2012-11-02 12:01:35','0'),(451113,'errors_out','2012-11-02 12:01:35','0'),(451113,'discards_out''
Oh, and poll time went from about 37 sec to about 110 sec.
-chadd.