RRD graphs are very slow to come up

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
kevandju
Posts: 45
Joined: Tue Oct 10, 2006 3:30 pm

RRD graphs are very slow to come up

Post by kevandju »

Replaced my Cacti machine with new hardware that and then migrated the data. Old machine was 1.0 ghz with 512MB RAM, new machine is 1.8ghz with 1GB of RAM. So specs out way faster, yet it is slower to draw the graphs. Exact same data, tried to duplicate the setup as best I could, not really sure what else to try to improve this. Perhaps my RRDTool version is bad or something?

Here is my tech support log:

Date Fri, 15 Apr 2011 10:51:25 -0400
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.3.2.2
RRDTool Version RRDTool 1.4.x
Hosts 53
Graphs 152
Data Sources SNMP Query: 107
Script - Script Server (PHP): 52
Total: 159
Poller Information
Interval 300
Type spine
Items Action[0]: 159
Action[2]: 51
Total: 210
Concurrent Processes 30
Max Threads 60
PHP Servers 8
Script Timeout 150
Max OID 60
Last Run Statistics Time:94.6634 Method:spine Processes:30 Threads:60 Hosts:53 HostsPerProcess:2 DataSources:210 RRDsProcessed:126
PHP Information
PHP Version 5.1.6
PHP OS Linux
PHP uname Linux graphs.stellar.local 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i686
PHP SNMP Installed
max_execution_time 360
memory_limit 512M
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: RRD graphs are very slow to come up

Post by gandalf »

It is known, that rrd 1.4 uses fontconfig fonts. Each time, rrd is called, it will perform a scan of the font directories, This is a known drawback. You may want to verify that by running the rrdtool command from "Graph management", debug mode, manually from command line
R.
kevandju
Posts: 45
Joined: Tue Oct 10, 2006 3:30 pm

Re: RRD graphs are very slow to come up

Post by kevandju »

Not sure what you're saying. I have double checked and I have:

RRDtool 1.4.4 Copyright 1997-2010 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Jul 9 2010 00:06:50

Are you saying it is best to downgrade to a version prior to RRDTool 1.4.x? Or is there a way to configure RRDTool 1.4.x so it doesn't operate so slow? Version I had on old PC was from a CactiEZ v0.6 install.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: RRD graphs are very slow to come up

Post by gandalf »

You may want to see "fc-cache" to cache font information used for rrdtool 1.4.x
R.
PatrickLodder
Posts: 1
Joined: Tue Apr 19, 2011 11:49 am

Re: RRD graphs are very slow to come up

Post by PatrickLodder »

I just fixed the load speed issue for kevandju, the cause was SELinux blocking access for rrdtool to /var/cache/fontconfig This is characterized by entries in /var/log/audit/audit.log

type=SYSCALL msg=audit(1303230505.222:175361): arch=40000003 syscall=5 success=no exit=-13 a0=8fd4790 a1=0 a2=8866e000 a3=8f981c8 items=0 ppid=21309 pid=22401 auid=0 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=16839 comm="rrdtool" exe="/usr/bin/rrdtool"

You can quick fix this by changing the access controls for /var/cache/fontconfig to something more accessible. Reference depends on your installation. Example:

Code: Select all

# chcon -R --reference=/your/cacti/rra/directory /var/cache/fontconfig
Hope that helps anyone else too!
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests