For information, I added "-XX:MaxPermSize=512m -Xms512m -Xmx1024m " in the <arguments> section of the jenkins.xml (windows service definition) file in the jenkins home directory. This file allows to pass arguments to jenkins' JVM. No error occurred since :)
Thanks for your help, Thomas Le lundi 16 septembre 2013 09:27:53 UTC+2, Richard Bywater a écrit : > > No that won't give you what you want. Assuming you are running using > Winstone, you'll need to update the Winstone config file (the name of the > file and the exact location escapes me at the moment but it will be in the > one of the directories off the top level) > > Richard. > > > On Mon, Sep 16, 2013 at 7:24 PM, Thomas <thomas....@gmail.com<javascript:> > > wrote: > >> Hello, >> >> My jenkins server is installed a s a windows service, and I set these >> options through the global environment variable of jenkins (configure >> system), but I don't know if it the right w >> >> >> Le vendredi 13 septembre 2013 21:33:14 UTC+2, Jerry a écrit : >> >>> Hi, Thomas. If it's a matter of Jenkins itself crashing and giving you >>> the OOM error, you probably just need to set options on the server. If >>> you're starting it through a batch file, it probably needs to look >>> something like this: >>> >>> java -DJENKINS_HOME=C:\path\to\**jenkins\home\directory >>> -Djava.awt.headless=true -XX:MaxPermSize=200m -XX:+CMSClassUnloadingEnabled >>> -XX:+CMSPermGenSweepingEnabled -jar C:\path\to\jenkins.war >>> >>> 200m should be more than enough for MaxPermSize. Play with that value if >>> this doesn't work immediately. >>> >>> -- Jerry >>> >>> >>> >>> On Thursday, September 12, 2013 3:48:26 AM UTC-4, Thomas wrote: >>>> >>>> Hi All, >>>> >>>> I am repeatedly facing PermGen space errors with my jenkins server. >>>> My server is installed as a windows service, scheduling build jobs to 4 >>>> slave nodes (windows and mac). >>>> >>>> I have found this link: >>>> https://wiki.jenkins-ci.org/**display/JENKINS/I'm+getting+** >>>> OutOfMemoryError<https://wiki.jenkins-ci.org/display/JENKINS/I'm+getting+OutOfMemoryError> >>>> >>>> But I'm not clear on how to solve this issue: >>>> - How to set options for the JVM when running windows batch or shell >>>> scripts ? >>>> - Must I set these options on server only, slave nodes only or both ? >>>> >>>> Thanks for helping, >>>> Thomas >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Sound Cloud - http://soundcloud.com/dilig0 >>>> >>>> -- >> 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 <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.