Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69262

Jenkins WAR shrinks and loses .class files after restarting in Tomcat 9 with Java 17

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None
    • - Ubuntu 20.04
      - Temurin 17 JDK
      - Apache Tomcat 9.0.65
      - Jenkins LTS 2.346.2

      Background

      We used to run Jenkins on JDK 8 with Tomcat 8 until a plugin updated that contained Java 11 compiled classfiles. Instead of rolling back, decided to upgrade to JDK 17 and latest Tomcat 9 and updated to latest LTS version.

      Problem

      It somehow seems that if Jenkins is deployed when restarting Tomcat, the war actually shrinks in size from 90~ MB to 70 MB. Somehow losing class files in the process.

      This causes some a lot of plugins to not load properly and hence the jobs fail to load aswell.

       

      I can share logs/add debugging info, but I don't know which parts are relevant. Let me know if I need to share anything or check other things first!

            Unassigned Unassigned
            weebljenkins Wessel Jenkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: