-
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
-
[JENKINS-22791] Record heap histograms
Workflow | Original: JNJira [ 154906 ] | New: JNJira + In-Review [ 178958 ] |
Assignee | New: Emilio Escobar [ escoem ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
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)