I don’t know the answer, but didn’t want you to think we’re ignoring you. I don’t think that the group has enough to bite on to answer this…yet.
My setup has Jenkins running for weeks at a time, so this is definitely not normal.
Some useful information might be:
1: Which version of Jenkins are you running?
2: Which OS are you running on?
3: Which web container are you running it in (Tomcat, Glassfish, Jetty, etc.)? If you’re just running “java –jar jenkins.war” or somesuch, you’re using the internal Winstone container
4: How does your system launch Jenkins? Is it a Unix init.d service, or a Windows service, or do you just launch it at the command line?
5: Are you using a plugin to back up your Jenkins configuration? I had one at one point and it wanted to shut down my Jenkins daily so that it didn’t back up a moving target.
--Rob
I have also seen our Jenkins get stuck in “Jenkins is going to shut down” mode, and it appears to be caused by the thin-backup plugin trying to begin a backup while a long-running job is running. The best solution seems to be to schedule nightly backups to run before starting any long-running jobs in the evening or overnight hours.
Regards,
Eric