Memory leak? Can't load problems from many hosts
See original GitHub issueDescribe the bug Can’t load data on Problem Panel in Grafana from Zabbix/zabbix proxy with many hosts and triggers.
Error:
$http:baddata] Data must be a valid JSON object. Received: "<br /> <b>Fatal error</b>: Allowed memory size of 469762048 bytes exhausted (tried to allocate 48238592 bytes) in <b>/usr/share/zabbix/include/classes/json/CJson.php</b> on line <b>158</b><br /> ". Parse error: "{}" http://errors.angularjs.org/1.6.6/$http/baddata?p0=%3Cbr%20%2F%3E%0A%3Cb%3EFatal%20error%3C%2Fb%3E%3A%20%20Allowed%20memory%20size%20of%20469762048%20bytes%20exhausted%20(tried%20to%20allocate%2048238592%20bytes)%20in%20%3Cb%3E%2Fusr%2Fshare%2Fzabbix%2Finclude%2Fclasses%2Fjson%2FCJson.php%3C%2Fb%3E%20on%20line%20%3Cb%3E158%3C%2Fb%3E%3Cbr%20%2F%3E%0A&p1=%7B%7D
When I setup ZBX_MEMORYLIMIT > "448M"
, browsers just crashed, so I can’t check is it works with ZBX_MEMORYLIMIT > "495M"
I use official Zabbix web Docker image
Tested in browsers:
- Mozilla Firefox for Ubuntu 65.0.1 (64-bit)
- Google Chrome Version 73.0.3683.75 (Official Build) (64-bit)
Ubuntu 18.04.02
Expected behavior
Just work) As it make plugin version 3.9.1, on ZBX_MEMORYLIMIT = "128M"
Screenshots
All works fine for 1-st and 3-d proxies, but failed on 2-nd as when I didn’t set proxy or whatever
Software versions
Grafana | Zabbix | Grafana-Zabbix Plugin |
---|---|---|
6.0.1 | 3.4.15 | 3.10.1 |
This bug can be 100% fixed by downgrade to 3.9.1 (but it still have another bug - #685 - need edit via json panel ).
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
It seems that’s enough. I’ll investigate this.
I’ve closed most of bugs from
3.10.2
milestone, so I think I’ll release it this week.