graph-view.php is taking ages to load an incomplete page

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

graph-view.php is taking ages to load an incomplete page

Post by Nick »

Hello there,

First time I'm installing Cacti under Windows and I'm having a weird problem.
I tried all different way to install it (manually with different version of each component) and finally end up with the Windows Installer V1.931.
The problem occur in every install at the same point: all the Cacti website is working well (i.e. loading fast) except the graph_view.php page which is taking so long time to load not even a complete page (See Screenshoot attached).

The weird thing is that everything is working well when I'm logging on locally on the server, but not when I tried to access it remotely through an external browser.
The issue is on both Apache and IIS installations.

All looks good under Cacti Technical Support page.
RRD files are created.

Operating System: Windows 2003 SP2
Webserver: Apache 2.2.11
Cacti: Cacti 0.8.7e
Spine: Spine 0.8.7e
MySQL: MySQL 5.0.83
PHP: PHP 5.2.9
RRDTool (Cygwin or Win32 version): RRDTool 1.2.30 (Cygwin)
Net-SNMP: Net-SNMP 5.4.2

A week I'm trying to find out what's could be the issue, but I didn't find anything from logs...

Nick
Attachments
graph_view.php.PNG
graph_view.php.PNG (113.59 KiB) Viewed 4181 times
Cacti_Tech_Support.rar
(19.8 KiB) Downloaded 145 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Under powered server?

Those 2 graphs in the picture took approx how long to render? When they're drawing, fire up task manager -- what is consuming all the cpu?

Always been using cywgin rrdtool 1.2.30? Might I suggest the Win32 version of 1.2.27 or .28. The whole 1.3x line has some performance issues, etc.
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

Post by Nick »

Actually nothing is consuming CPU and everything is working fast localy on the server.

But my investigation shown me that is also working well from others specific servers on my network.
It sounds more like a "routing" issue (I have some asymmetric routes at one point), and from my experience HTTP doesn't like that in some situation.

So I would say not a cacti issue for the moment.

I'd come back to you as soon as I fixed that issue.

Thx,
Nick
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

Post by Nick »

Ok,

After fixing some weird configuration on my network I delete the asymetric route.

Now I have a "clean & single" path between my client on my cacti server.
However it didn't fix my loading issue.

After some investigations it appear that I'm having issue loading this Javascript file in particular: ftiens4.js.

When I tried to load it directly only a piece of it is loaded.

The error I'm getting on Firefox console are:

Erreur : initializeDocument is not defined
Fichier Source : http://cactiserver/cacti/graph_view.php ... first=true
Ligne : 78

Erreur : myNode is null
Fichier Source : http://cactiserver/cacti/graph_view.php ... first=true
Ligne : 95

I tried to delete all my tree and just create one empty: I have the same Javascript errors and can't see the tree, but the page is now loading.

Very bizarre...
Any other ideas?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm the ugly treeview code.

Graph loading still fast locally and slow remotely? If so, then I wouldn't think it's an issue with the code and instead network / browser. What browsers / versions are you using? Tried others like chrome, opera, firefox, IE (not sure what you're using)?
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

Post by Nick »

I'm using both Firefox 3 and IE8.
Actually it is loading fast once I clean cache but without the tree on th left panel.

But after few times, the page will load slowly again.

Is there any more up-to-date version of treeview that we can use?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Assuming when you've been upgrading Cacti, you're overwriting the existing files with the ones from the cacti zip file, then you should have the latest.

I'm still not sure this is a problem with the treeview code, since there really haven't been any others reporting these types of issues. Lets review.

1) Locally on the cacti server, viewing graphs via graph management works as expected?
2) Locally on the cacti server, viewing graphs in the TREEs works as expected?
3) Remotely, viewing graphs via graph management works as expected?
4) Remotely, viewing graphs in the TREEs works as expected?
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests