Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11485

No Server logs after shutdownHook has been called

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Final, 10.1.7.Final
    • 11.0.0.Alpha2, 10.1.5.Final
    • Server
    • None

      When a server process receives a SIGTERM it simply logs the following, regardless of the log configuration:

      INFO  (Thread-0) [org.infinispan.SERVER] ISPN080002: Infinispan Server stopping
      INFO  (Thread-0) [org.infinispan.SERVER] ISPN080002: Infinispan Server stopped
      

      This is because Log4j registers a shutdownHook with the runtime in order to cleanup log resources. In order to aid server debugging, we should disable this shutdownHook and manually shutdown the Log4j LogManager.

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: