-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
1.651.3
Hi,
Recently we upgraded from 1.596.3 to 1.651.3 and observing that the later version is consuming lot of heap as soon as it comes up.
WE have got many jobs with huge build history.. in terms of 4000 builds. Each builds's build.xml is in terms of 500k.
Whenever the instance is restarted the heap starts to grow and finally the instance crashed with OEM.
The heap dump shows that values defined under hudson.model.TextParameterValue of each build is loaded into memory!
Refer screenshots: heap-screenshot-0.png & heap-screenshot-1.png
Here is the contents of build.xml of one such build. refer screenshot build.xml-screenshot.png
Is it this commit SECURITY-170 Store initial parameters list for later use which is loading all values?
[JENKINS-38914] hudson.model.TextParameterValue heavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memorey
Summary | Original: hudson.model.ParametersAction heavily bloats memory use and size of build.xml with TextParameterValue | New: hudson.model.ParametersAction heavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memory |
Attachment | New: heap-screenshot-3.png [ 34329 ] |
Attachment | New: heap-screenshot-0.png [ 34330 ] |
Attachment | Original: heap-screenshot-3.png [ 34329 ] |
Attachment | Original: heap-screenshot-0.png [ 34326 ] |
Attachment | New: lazy_BuildReference.MODE.JPG [ 34465 ] | |
Attachment | New: lazy_BuildReference.MODE-2.JPG [ 34466 ] |
Summary | Original: hudson.model.ParametersAction heavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memory | New: hudson.model.TextParamterheavily bloats memory use and size of build.xml by loading all builds TextParameterValue in memory |
Could you clarify, are you using extremely long parameter values for your builds?