The server hosting CACTI is having high CPU utilization since several servers were added (around 90). Before it had 115. For what I read it shouldn't be any problems handling more than 200+ devices.
This is the setup:
Server: Sun E4500
Procs: 2
Memory: 2GB
SO: Solaris 9
CACTI: cacti-0.8.6c
MySQL: mysql-4.0.17
PHP: php-4.3.4
rrdtool: rrdtool-1.0.46
I know they are not the latest versions, but it was working fine and an upgrade is not possible for the moment.
The recently added servers are Windows; the were added using the Windows 2000/XP template but most of them are 2003.
Currently there are around 246 'cacti' processes running.
The top command shows the following:
last pid: 2646; load averages: 77.15, 76.65, 76.91 16:40:30
326 processes: 251 sleeping, 59 running, 13 zombie, 3 on cpu
CPU states: 0.0% idle, 84.2% user, 15.8% kernel, 0.0% iowait, 0.0% swap
Memory: 2048M real, 180M free, 1384M swap in use, 2101M swap free
PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
2461 cacti 1 42 2 9896K 8088K run 0:00 1.09% php
2503 cacti 1 42 2 9896K 8088K run 0:00 1.03% php
2507 cacti 1 42 2 9896K 8088K run 0:00 1.03% php
2515 cacti 1 42 2 9272K 7488K run 0:00 0.94% php
2505 cacti 1 52 2 9880K 8080K sleep 0:00 0.94% php
2479 cacti 1 53 2 9880K 8080K sleep 0:00 0.93% php
2495 cacti 1 43 2 9336K 7552K run 0:00 0.91% php
2523 cacti 1 52 2 9184K 7400K sleep 0:00 0.91% php
2498 cacti 1 43 2 9280K 7496K run 0:00 0.90% php
2468 cacti 1 53 2 9880K 8080K sleep 0:00 0.88% php
2443 cacti 1 43 2 9880K 8080K run 0:00 0.87% php
2527 cacti 1 42 2 8752K 6872K run 0:00 0.86% php
2422 cacti 1 53 2 9880K 8080K sleep 0:00 0.85% php
2519 cacti 1 52 2 9040K 7256K sleep 0:00 0.85% php
2353 cacti 1 53 2 11M 9256K sleep 0:00 0.84% php
I can open the CACTI home page but it is really slow and sometimes I get an error regarding the mysql database (After reloading the page one it works):
Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
When trying to connect to the mysql DB I got the following message:
ERROR 1040: Too many connections
Searching on the web I found that a parameter on the my.cnf must be changed to increase the number of connections but I did not find it on the my.conf file.
Any help / comments is really appreciated.
If you need further information let me know.
Thanks in advance for your help!
![:D](./images/smilies/icon_biggrin.gif)