When use the java agent there are too many MetricFamilySamples$Sample in the heap
See original GitHub issueI 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
And I checked the GC rate trend is same with the CPU increase.
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.
And after I restarted the service and use jmap
again, I can not find too many prometheus objects.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
Sorry I think the issue does not cause by the agent. Thanks very much.