-
New Feature
-
Resolution: Fixed
-
Major
-
None
(Thought this was already filed, but cannot find it now.)
There should be a component which records heap histograms using jmap -histo:live or something equivalent in-process. This can offer at least a guess as to the cause of increasing memory usage, pending an actual heap dump to pinpoint the problem.
- is related to
-
JENKINS-50008 Heap Histogram (all instances by default)
-
- Open
-
If you have the Monitoring plugin installed in your Jenkins server, then the "/monitoring?part=heaphisto" page will display the same thing to guess the cause of increasing memory usage, and it will offer to take a heap dump for you.
The "/monitoring?part=heaphisto&format=pdf" will give you the same data as pdf.
OK, that's not the same as recording heap histograms over time.
But, you could also use the groovy plugin in a periodic job, to execute the following script and record heap histogram for each execution of your job:
https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+Scripts#MonitoringScripts-Displayheaphistogram%28objectinstancesperclass%29
(sorry for groovy)