How many runs of these builds do you have hanging around?  I had this problem 
before, and it appeared that the results of every build (except for the log 
files and the artifacts) are held in memory.  In my case, I stored the 
environment of every build I ran and our environments get really big (as in, 
classpaths get truncated for exceeding Linux’s max size for environment 
variable values).  Trimming down to (say) the last week of builds helped out a 
lot.

Also, you may want to explicitly set your max heap space, but that’s more a 
Java 7 thing than a Jenkins thing.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ben Erridge
Sent: Wednesday, October 03, 2012 11:34 AM
To: jenkinsci-users@googlegroups.com
Subject: Jenkins using massive amount of ram

I have installed jenkins on a fedora core 17 linux server. When I start jenkins 
it seems to take a ton of ram (12GB+). I start jenkins with the command.

I am using open jdk 1.7

start command is
/usr/bin/java -Djava.awt.headless=true -DXmx4g -XX:MaxPermSize=128m  
-DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war 
--logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war 
--httpPort=8080 --ajp13Port=8009 --debug=5 --handlerCountMax=100 
--handlerCountMaxIdle=20

It doesn't seem reasonable to me. Maybe I am doing something wrong? I only have 
5 builds setup...


[https://lh5.googleusercontent.com/-Ofheh_L4EgY/UGxasgpqtcI/AAAAAAAAA2Q/V38CC-q1Jvo/s400/jenkinsTop.png]<https://lh5.googleusercontent.com/-Ofheh_L4EgY/UGxasgpqtcI/AAAAAAAAA2Q/V38CC-q1Jvo/s1600/jenkinsTop.png>



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.

Reply via email to