question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory leak? Can't load problems from many hosts

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alexanderzobnincommented, Apr 18, 2019

It seems that’s enough. I’ll investigate this.

0reactions
alexanderzobnincommented, Apr 23, 2019

I’ve closed most of bugs from 3.10.2 milestone, so I think I’ll release it this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory Leak Issues, but only on Host : r/admincraft - Reddit
The problem occurs when I load in chunks. If I fly in one direction, the memory usage goes up. When I stop, so...
Read more >
How we find and fix OOM and memory leaks in Java Services
There can be several causes for memory leaks. We will discuss the most common ones here. The first and probably most easily overlooked...
Read more >
How to troubleshoot a memory leak - BizTalk Server
Describes troubleshooting steps, important memory usage considerations, and known memory-related issues in BizTalk Server.
Read more >
How to troubleshoot Linux server memory issues - UpCloud
conf –file. Open the configuration file for edit. Add the same lines to the end of the file.
Read more >
How to Troubleshoot Low RAM or Memory Leaks in Windows
Luckily, a host of programs allow us check what is using our RAM. Right-click the Taskbar. You should spot Start Task Manager. Selecting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found