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.

When use the java agent there are too many MetricFamilySamples$Sample in the heap

See original GitHub issue

I used the javaagent to get some metrics like java -javaagent:/opt/jmx_exporter/jmx_prometheus_javaagent.jar=8080 ..., the version is 0.8.0 With the service running day by day we found the CPU usage is increase like this image And I checked the GC rate trend is same with the CPU increase. image And then I used the command jmap -histo:live 1 to find there were more prometheus jmx relative objects. I am not sure is there an memory leak or it is normal case. image

And after I restarted the service and use jmap again, I can not find too many prometheus objects.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
javicgcommented, Feb 3, 2020

@mingyuanzhu would you mind sharing more details as to what exactly caused the issue? We are facing the same problem, and it would be good to have a resolution here for future reference. Thanks in advance.

0reactions
mingyuanzhucommented, Jan 31, 2020

Sorry I think the issue does not cause by the agent. Thanks very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When use the java agent there are too many ... - GitHub
I used the javaagent to get some metrics like java -javaagent:/opt/jmx_exporter/jmx_prometheus_javaagent.jar=8080 ... , the version is 0.8.0
Read more >
Relic Solution: Troubleshooting Java Agent Memory Leaks ...
1) Heap size too small. This is the simplest memory issue and it occurs when a user has set their -Xmx value low...
Read more >
What to do if your MFT agent ABENDS with a java.lang ... - IBM
OutOfMemoryError , and at the time your total RAM memory was not fully utilized. This exception has been caused by Java heap exhaustion....
Read more >
How to set jvm heap size when starting a jade agent
I'm trying to increase jvm heap size because my JADE agent program throws java.lang.OutOfMemoryError: Java heap space error. I have set java ...
Read more >
Java Agent - TechDocs - Broadcom Inc.
The agent uses some of the application server Java heap memory to store collected data. The following information applies to the heap usage:....
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