Hi Baptiste. >Just out of curiosity, why do you want to automate that restart?
I find Jenkins slows down after running for awhile (a week or so) and a restart usually fixes this. I've used the monitoring plugin to try to identify issues but I haven't spotted anything other than response times slowly increasing over time. Forcing garbage collection etc., seem to help a little, but so far the best solution is simply to restart. If I can schedule that over the weekend that should work well. But yes, you are correct to ask why I need to do this as it shouldn't really be required. I'll continue to try and track down the root cause, but in the meantime this should help. Thanks Andy On Friday, 28 February 2014 07:41:08 UTC, Baptiste Mathus wrote: > > Just out of curiosity, why do you want to automate that restart? > Le 27 févr. 2014 11:18, "AndyB" <andy....@gmail.com <javascript:>> a > écrit : > >> Hi, >> >> Could you tell me if it's possible to schedule a regular safe-restart of >> Jenkins? I have the safe-restart plugin which works fine, but I'd like to >> have Jenkins do a safe-restart over the weekend when it's generally idle. I >> looked at the command line interface but I can't use that as it requires >> either storing a password in a file or passing a password on the command >> line, neither of which is doable in our environment. Is there a way to >> schedule an automatic safe restart from within Jenkins? I guess the problem >> is that if it's a job the restart will block 'til the job itself is >> completed, causing a deadlock. Can anyone suggest a way to achieve this? >> >> Thanks, >> Andy >> >> -- >> 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.