Skip to content

[JENKINS-56896] Shutdown message 'INFOS: JVM is terminating. Shutting down Jetty' is shown randomly  #493

@jenkins-infra-bot

Description

@jenkins-infra-bot

This is funny issue I discovered recently after being pointed out by a customer.

How to reproduce

  • Start Jenkins
  • Wait a bit of time until it reaches full startup (no new log shown, generally ~30 to 60 seconds, say)
  • Stop it with a signal/Ctrl-C
  • Doing this many times, see that the message INFOS: JVM is terminating. Shutting down Jetty is not shown consistently

Expected behavior

The message should be always shown.

Asides

This seems like this is not a big deal, given this has been this way for a long time, if not forever.
I was able to reproduce it using even an old Jenkins 2.1: docker run jenkinsci/jenkins:2.1.

Technically, after a small testing, the issue seems to be that when the ShutdownHook gets called, sometimes the launcher is null ?!?

if (this.launcher != null) {


Originally reported by batmat, imported from: Shutdown message 'INFOS: JVM is terminating. Shutting down Jetty' is shown randomly
  • status: Open
  • priority: Minor
  • component(s): winstone-jetty
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-11-27
Raw content of original issue

This is funny issue I discovered recently after being pointed out by a customer.

How to reproduce

  • Start Jenkins
  • Wait a bit of time until it reaches full startup (no new log shown, generally ~30 to 60 seconds, say)
  • Stop it with a signal/Ctrl-C
  • Doing this many times, see that the message INFOS: JVM is terminating. Shutting down Jetty is not shown consistently

Expected behavior

The message should be always shown.

Asides

This seems like this is not a big deal, given this has been this way for a long time, if not forever. I was able to reproduce it using even an old Jenkins 2.1: docker run jenkinsci/jenkins:2.1.

Technically, after a small testing, the issue seems to be that when the ShutdownHook gets called, sometimes the launcher is null ?!?

if (this.launcher != null) {

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions