PermGen issue

17 views
Skip to first unread message

vishad alekh

unread,
Oct 13, 2016, 7:49:08 PM10/13/16
to Jenkins Users
Hi All,

I am using Jenkins 2.11. My Jenkins is frequently going down with permGen issue.
Even if I am not executing any jobs.
My server configuration is pretty good too.

Can someone please assist with the possible reason for the same. Or any way in which this can be resolved.

I have tried increasing the permGen space by passing parameter at the time of startup but no luck.

Maven configuration is also done for the same.


Please assist.


Thanks and Regards
Vishad Alekh

R. Tyler Croy

unread,
Oct 13, 2016, 9:18:04 PM10/13/16
to jenkins...@googlegroups.com
(replies inline)

On Thu, 13 Oct 2016, vishad alekh wrote:

> Hi All,
>
> I am using Jenkins 2.11. My Jenkins is frequently going down with permGen issue.
> Even if I am not executing any jobs.
> My server configuration is pretty good too.
>
> Can someone please assist with the possible reason for the same. Or any way in which this can be resolved.
>
> I have tried increasing the permGen space by passing parameter at the time of startup but no luck.
>
> Maven configuration is also done for the same.

Out of curiosity are you using Multibranch Pipeline heavily? The fact that
you're having a PermGen issue means you're likely running on JDK7, can you tell
us anything else about your environment?



- R. Tyler Croy

------------------------------------------------------
Code: <https://github.com/rtyler>
Chatter: <https://twitter.com/agentdero>

% gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------
signature.asc

vishad alekh

unread,
Oct 13, 2016, 11:39:34 PM10/13/16
to R. Tyler Croy
Hi,

Yes, I am using multi branch pipeline and also jdk 7. 
Actually I have made build n compilation job for 3 application. There is a master job which is calling these three jobs in parallel executor. 



Thanks and Regards 
Vishad Alekh

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: R. Tyler Croy
Sent: Friday 14 October 2016 6:48 AM
To: jenkins...@googlegroups.com
Reply To: jenkins...@googlegroups.com
Subject: Re: PermGen issue
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/xjlojjCKPhI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20161014011749.GT3357%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.

R. Tyler Croy

unread,
Oct 14, 2016, 12:44:42 PM10/14/16
to jenkins...@googlegroups.com
(replies inline)

On Fri, 14 Oct 2016, vishad alekh wrote:

> Hi,
>
> Yes, I am using multi branch pipeline and also jdk 7. 
> Actually I have made build n compilation job for 3 application. There is a master job which is calling these three jobs in parallel executor. 



For https://ci.jenkins.io we're using Multibranch Pipelines very heavily and I
*believe* that this was putting heavy pressure on the PermGen space in JDK7 and
causing some issues for us.

My solution, as suggested by a few others, was to simply upgrade to JDK8 wihch
has a number of improvements in handling objects which previously were stored
in this PermGen space. I wrote about that here:
http://unethicalblogger.com/2016/10/03/dropin-containerized-jenkins-master.html


If that isn't an option, making the PermGen space much higher might help, but I
*think* that JDK7 simply doesn't clean up the PermGen space properly so you
might still see "leaks."
signature.asc

vishad alekh

unread,
Oct 14, 2016, 3:36:58 PM10/14/16
to R. Tyler Croy
This jdk upgrade is mainly for application code compilation or Jenkins compilation. 



Thanks and Regards 
Vishad Alekh

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: R. Tyler Croy
Sent: Friday 14 October 2016 10:14 PM
To: jenkins...@googlegroups.com
Reply To: jenkins...@googlegroups.com
Subject: Re: PermGen issue

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/xjlojjCKPhI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20161014164431.GW3357%40blackberry.coupleofllamas.com.
Reply all
Reply to author
Forward
0 new messages