[ZBX-5867] Abysmal rendering time of big-width graphs Created: 2012 Nov 17  Updated: 2017 May 30  Resolved: 2015 Mar 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.3, 2.1.0
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: ojab Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: graphs, performance, php
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File ZBX-5867-wa.patch     Text File graph.txt    

 Description   

On my 1920x1080 monitor width of graphs Monitoring -> Graph is 1719 and stacked graph with 17 graphitems & 2 triggers (graph.get() can be found in the attached file) renders for 200 sec, that makes "quick look" completely impossible.
Rendering time increases non-linearly, please see results of http://example.com/zabbix/chart2.php?graphid=554&period=3600&width=... generating below.
As far as I can see — bottleneck is php: httpd consumes 100% CPU and mysql don't log any slow queries.

width (px) -> rendering time (second)
500 -> 2.1
600 -> 3.0
700 -> 4.1
800 -> 6.1
900 -> 8.3
1000 -> 22
1100 -> 40
1200 -> 60
1300 -> 85
1400 -> 108
1500 -> 140
1600 -> 170
1700 -> 200



 Comments   
Comment by ojab [ 2012 Nov 23 ]

Workaround, limits max width of graphs to 800px.

Comment by Alexei Vladishev [ 2012 Nov 23 ]

Just wondering, what CPU do you use on Zabbix front-end side?

Comment by ojab [ 2012 Nov 23 ]

This results are from my localhost instance (Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz), but results on the test instance (Intel(R) Xeon(R) CPU E5620 @ 2.40GHz) is not much better: 1700px graph is rendered for 120 sec.

Comment by Alexander Vladishev [ 2015 Mar 09 ]

We cannot reproduce the issue. Closing.

Generated at Sat Apr 20 03:57:49 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.