Multijob out of memory issues

56 views
Skip to first unread message

Shashank Bhargav

unread,
Aug 24, 2017, 2:08:48 AM8/24/17
to Jenkins Users
Hi All,

We are facing serious out of memory errors with Multi job project.

Configuration contains the following : 

1. Parameterized build
2. Multi job Phase
3. Inject passwords to the build as environment variables
4. Set Jenkins user build variables
5. Editable Email notification

All of these is executed ,memory immediately shoots up after last step  is executed and Jenkins hangs.

Has anyone faced such issues before?

Michael Pailloncy

unread,
Aug 24, 2017, 4:02:18 AM8/24/17
to jenkins...@googlegroups.com
The best to start here would be to try instructions on this page and analyze the resulting heapdump.



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2f7997c8-094c-4ab1-9888-47d354ad3c80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Baptiste Mathus

unread,
Aug 28, 2017, 2:41:52 PM8/28/17
to jenkins...@googlegroups.com
+1 with Michael, in addition to this I would probably try some 'diff-debugging' by using/removing some parts of that thing and try and narrow down more precisely what caused the memory peak.

BTW, what is your Xmx value?

Shashank Bhargav

unread,
Aug 28, 2017, 10:21:07 PM8/28/17
to Jenkins Users, m...@batmat.net
8192m is the value for XMX we have currently set. But the usage takes almost that and hangs.

Couple of things we have observed until now : 

1. Discard builds was set to number 100 and now we have changed it to 25, assuming performance issues are due to large number of builds. 
2. We also have a plugin written which generates change log. For some reason Multijob plugin copies change log details of all sub jobs ( as the SCM is in sub jobs ) to its build.xml and hence build.xml file becomes huge. In some cases when the there are lot of changes, this itself crosses 1 GB. 
We are trying to identify and tweak our change log generation somehow, so that multijob doesn't pick this up.
3. Heap dump didn't provide lot of details, it of course said Multijob takes lot of memory which is already known :)

We haven't had a concrete solution as yet, but trying out on these possibilities.

On Tuesday, 29 August 2017 00:11:52 UTC+5:30, Baptiste Mathus wrote:
+1 with Michael, in addition to this I would probably try some 'diff-debugging' by using/removing some parts of that thing and try and narrow down more precisely what caused the memory peak.

BTW, what is your Xmx value?
Le 24 août 2017 01:02, "Michael Pailloncy" <michael....@gmail.com> a écrit :
The best to start here would be to try instructions on this page and analyze the resulting heapdump.


2017-08-24 8:08 GMT+02:00 Shashank Bhargav <shashb...@gmail.com>:
Hi All,

We are facing serious out of memory errors with Multi job project.

Configuration contains the following : 

1. Parameterized build
2. Multi job Phase
3. Inject passwords to the build as environment variables
4. Set Jenkins user build variables
5. Editable Email notification

All of these is executed ,memory immediately shoots up after last step  is executed and Jenkins hangs.

Has anyone faced such issues before?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Mark Waite

unread,
Aug 28, 2017, 10:33:22 PM8/28/17
to Jenkins Users, m...@batmat.net
Git plugin has known issues with keeping and reading too much build data.  Limiting the amount of history had been my best work around to date. 

Mark Waite

Shashank Bhargav

unread,
Aug 29, 2017, 4:12:49 AM8/29/17
to Jenkins Users, m...@batmat.net
We are not using GIT plugin, a custom SCM plugin has been written and thats used.
Reply all
Reply to author
Forward
0 new messages