I have really bad performace, i was playing with optimizing mysql, mirror volumes etc, but there is all nothing. Recently i noticed, that when I run poller.php manually, it first gather data (no output), after that is long series of "OK's", than very long nothing happens, and everything ends. I saw, that in that moment betwen end of OK's and end of the process, I have one rrdtool process. The end of execution looks like:
Code: Select all
OK u:0.64 s:2.54 r:119.09
OK u:0.65 s:2.54 r:119.12
OK u:0.65 s:2.54 r:119.14
Code: Select all
01/12/2007 10:14:39 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/12/2007 10:14:39 PM - SYSTEM STATS: Time:292.9227 Method:cactid Processes:12 Threads:12 Hosts:222 HostsPerProcess:19 DataSources:15519 RRDsProcessed:3975
And, when break occurs:
Code: Select all
# ps -efL|grep cacti
root 3852 4806 1 1 0 22:20:30 pts/3 0:00 grep cacti
cacti 219 18961 1 1 5 22:18:35 pts/2 0:11 /usr/local/bin/php /var/htdocs/cacti/poller.php
cacti 18961 4660 1 1 0 21:45:51 pts/2 0:00 -bash
cacti 718 717 1 1 1 22:18:48 pts/2 0:02 /usr/local/rrdtool-1.2.15/bin/rrdtool -
cacti 717 219 1 1 0 22:18:48 pts/2 0:00 sh -c /usr/local/rrdtool-1.2.15/bin/rrdtool -
On the other installation, on dual opteron with 2gb of ram (Sun Fire v20z), with about 20cisco switches monitored, ALL is completed within 6 seconds (!).
Do you have any suggestions, how to improve performance on this box?