rrdtool 1.4.3 + php 5.3.1 = Slow Graphing (rrdtool@100% cpu)

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

Moderators: Developers, Moderators

gwk
Posts: 3
Joined: Mon Dec 20, 2010 12:57 am

Re: rrdtool 1.4.3 + php 5.3.1 = Slow Graphing (rrdtool@100%

Post by gwk »

I did run one of the rrdtool commands as root perhaps that built some system wide font cache, running fc-list as _www returns the list as fast as any other user.
senger
Posts: 2
Joined: Tue Aug 17, 2010 10:21 pm

Re: rrdtool 1.4.3 + php 5.3.1 = Slow Graphing (rrdtool@100%

Post by senger »

Just to add my experience - I was having the same problem in apparently identical circumstances. I followed the most recent posts regarding fc-cache and .fontconfig but this did not improve rendering times. The last post about running a rrdtool command as root did fix the problem. So apparently, rrdtool is able to do some caching as root that it is not able to do as _www.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: rrdtool 1.4.3 + php 5.3.1 = Slow Graphing (rrdtool@100%

Post by gandalf »

Did you research SELinux in that direction?
R.
staze
Posts: 7
Joined: Mon Jan 31, 2011 6:28 pm

Re: rrdtool 1.4.3 + php 5.3.1 = Slow Graphing (rrdtool@100%

Post by staze »

I'm lost here.

I am running rrdtool 1.4.4, and PHP 5.3.3 on a 10.6.6 Server, and the render times for graphs via a web browser are horrible. rrdtool spikes the CPU and it probably lasts that way for 10-15 seconds.

This is a 2.66ghz dual core Mac Mini, 4GB of ram.

running rrdtool as root or _www returns results instantly (at least rrdtool info /path/to/file.rrd). Not sure how to generate a graph from the rrd file to test.

This is the only info I've found relating to this issue, so I'd be very keen on figuring out why performance is so pitiful.
bacon
Posts: 8
Joined: Sat Feb 26, 2011 12:15 am

Re: rrdtool 1.4.3 + php 5.3.1 = Slow Graphing (rrdtool@100%

Post by bacon »

So goooooood!
krolingo
Posts: 4
Joined: Wed May 07, 2008 6:27 pm

Re: rrdtool 1.4.3 + php 5.3.1 = Slow Graphing (rrdtool@100%

Post by krolingo »

I have found the solution, in Mac OS X and if you are using macports.

1. port uninstall -f fontconfig
2. port install fontconfig

This recreates the font caches in the right place. The problem is solved.

:lol: :P :D :wink:
Post Reply

Who is online

Users browsing this forum: anwaraahmad1 and 1 guest