How many job runs do you have? Results (modulo output logs and artifacts) on every build that you can still see on Jenkins stay in memory. If you have a large number of jobs (such as having a CI build set up without telling it to only keep the last n builds or m days worth of builds), the metadata from these builds can eat up 2GB in no time. I've had this problem before-it hit me especially hard, as our runtime environment exceeds 64 KB (obscenely long classpaths and the like) and jobs remember the environments they were run in.
Guys, do we need something on this in the Jenkins Wiki? --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varghese Renny Sent: Friday, November 09, 2012 12:15 AM To: jenkinsci-users@googlegroups.com Subject: Re: Memory issues with Jenkins Hi David, You have to set JVM in two places, one for system, one for the particular job you are running..check it out..I think 2GB memory is more than enough for one job..You can analze it through monitoring plugin.. Options are you can dump your heap memory to some location in your system and use some tools to anlayse those dumped memory to find any memory leakage..I think in eclipse one memory analyzer plugin is there. You can search some other better tools also.. Regards, varghese On Fri, Nov 9, 2012 at 2:59 AM, Qazwart <qazw...@gmail.com<mailto:qazw...@gmail.com>> wrote: At first, I was getting Out of Heap errors and increased the server's memory requirements to 1024m. Now I have a FATAL: GC overhead limit exceeded error. I'm running Jenkins 1.476 on a Redhat server running on Tomcat 7.0.27. I have the following options set: -Xmx1024m -Xx:PrintGCTimeStamp -verbose:gc -XX:-UseGCOverhradLimit (The GC stuff I just added) I can see a full GC constantly being called every second. This happens after the build is complete and after I am running the PMD plugin. Any advice? I've increased memory to 2Gb. This is the first time I used Jenkins with Tomcat. I'm wondering if there's an issue with Tomcat. -- David Weintraub da...@weintraub.name<mailto:da...@weintraub.name> The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.