| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Routers2.ggi takes 49 seconds to display a page http://www.steveshipway.org/forum/viewtopic.php?f=2&t=8220 |
Page 1 of 1 |
| Author: | vk2him [ Tue May 13, 2014 1:33 am ] |
| Post subject: | Routers2.ggi takes 49 seconds to display a page |
I'm at my wits end trying to figure out why my routers2.cgi install runs so slowly. It was previously running fine on a 4 year old Macmini and would take 6 seconds to display a page. I've updated the Macmini to a newer more powerful one with lots more memory and CPU than the old one, however the new one takes 49 seconds to display the graphs (the devices and targets display immediately, its just the graphs that take 49 seconds). Running the config to create the .rrd files is fast, it's just displaying the graphs that's slow. I've tried just about all I can think of including recreating the .rrd files, reinstalling RRDtools, striping the routers2.cfg file back to bare minimum with almost no options, two different Perl versions and using multiple versions of routers2.cgi however it always takes 49 seconds to display the graphs. Comparing the old mac to the new, the differences are the old mac is Snow Leopard Server and has RRDs library (Version 1.4.4) while the new mac is Mavericks Server and has RRDs library (Version 1.4.7) with the CPU running at 100% while the script is running... I've tried to downgrade RRDtools to an older version but this is beyond my skillset - I installed rrdtools using Macports and I can't see a way to install an older version. I'm pretty sure its not Snow Leopard vs Mavericks issue as I've pointed the #! to a few versions of perl with the same result. I was hoping someone may have some suggestions? Thanks in advance Ian |
|
| Author: | stevesh [ Sun Aug 03, 2014 11:49 am ] |
| Post subject: | Re: Routers2.ggi takes 49 seconds to display a page |
Sounds like the delay is in the RRDs calls, so not down to the number of cfg files. If you can, use FastCGI, mod_perl, speedycgi or similar, so that the RRDs library does not have to reload every time, which might help. Otherwise, possibly an issue with the filesystem on which the RRD files is? Do the RRD files have all 8 RRAs created, or are the higher-granularity ones missing, causing larger graphs to do a lot of consolidation work on the fly? |
|
| Author: | vk2him [ Sun Aug 03, 2014 11:57 am ] |
| Post subject: | Re: Routers2.ggi takes 49 seconds to display a page |
Thanks Steve - I tried speedycgi ete, however unable to implement successfully on my MAC OS system. Can you please clarify re the 8 x RRAs you mention as I think I'm only creating one RRD for each - how would I create the 8 you mention? Cheers Ian |
|
| Author: | vk2him [ Sun Aug 03, 2014 12:01 pm ] |
| Post subject: | Re: Routers2.ggi takes 49 seconds to display a page |
| Author: | stevesh [ Thu Nov 06, 2014 11:19 am ] |
| Post subject: | Re: Routers2.ggi takes 49 seconds to display a page |
One RRD files contains 8 RRAs for two DSs. The RRA is the consolidated archive used for graphing; if one is missing, then it will be created on the fly from available data, which will slow things down. However, it is more likely that your server is low on memory, or the disk is slow. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|