cacti 0.8.6g graph performance

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
guice
Posts: 9
Joined: Fri Oct 14, 2005 1:49 pm

cacti 0.8.6g graph performance

Post by guice »

I just upgraded cacti from 0.8.4 to 0.8.6g on one of our internal systems and upon verification by our network folk, he immediately a complained about a big decrease in speed in drawing the graphs. I have noticed it takes an average of 3-4 seconds to draw 1 graph.

Is there anything I can to assist in speeding up the drawing of the graphs?
(Aside from installing some PHP optimizer)

Solaris 2.8
Cacti 0.8.6g
PHP 5.0.5
Apache 2.0.55
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Re: cacti 0.8.6g graph performance

Post by dgamble »

guice wrote: Is there anything I can to assist in speeding up the drawing of the graphs?
(Aside from installing some PHP optimizer)

Solaris 2.8
Cacti 0.8.6g
PHP 5.0.5
Apache 2.0.55
I'm not a developer, and this is just a shot in the dark from my pre-cacti days, but...

When a graph is being drawn, can you see if the CPU on the cacti machine is pegged, and if so, see if the httpd process is using it? And, is your web site over HTTPS, by chance?
guice
Posts: 9
Joined: Fri Oct 14, 2005 1:49 pm

Post by guice »

Yes, the httpd process does spike over 20% CPU useage during the drawing and not running through https.
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

guice wrote:Yes, the httpd process does spike over 20% CPU useage during the drawing and not running through https.
OK, it's likely not the issue I was thinking of then, sorry. I had a problem awhile back with a generic rrdtool interface where the lack of buffering on the image would crush the Apache server trying to encrypt a bunch of small packets.

If you want to see if it's something similar with you.... I believe that editing graph_image.php and moving the ob_end_flush() command to after the rrdtool_function_graph command would test/fix this. If this doesn't help, restore the file to the way it was before.

If not, hopefully someone else will have some ideas.
guice
Posts: 9
Joined: Fri Oct 14, 2005 1:49 pm

Post by guice »

It's alright. That wasn't the problem. Maybe somebody else would know. Some more info about the upgrade.

All the upgrades I did were:
Apache 1.3.28 => Apache 2.0.55
PHP 4.3.4 => PHP 5.0.5
Cacti 0.8.4 => 0.8.6g

I didn't upgrade rrdtool, it's still version 1.0.45.
guice
Posts: 9
Joined: Fri Oct 14, 2005 1:49 pm

Post by guice »

PS: I also just verified on a non-upgraded install that the graphs draw instantainiously. Definatly a massive redraw hit from the upgrade.
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Have you maybe upgraded rrdtool as well? 1.2.x with all the nice looking new features turned on runs considerably slower than 1.0.x.

- Piotr
guice
Posts: 9
Joined: Fri Oct 14, 2005 1:49 pm

Post by guice »

No, didn't upgrade rrdtool.

I also have another problem which I'll open another thread for, to keep this thread "clean" and on topic.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest