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

System log no longer usable as soon as it is full of "<discarded>" messages (regression in 2.325)

    • 2.358, 2.346.3

      This issue is related to PR #6044

      These <discarded> messages seem to appear randomly after a few minutes of using the Jenkins server.

      Each time I refresh the log page, the date of the <discarded> messages is updated and the number of lines displayed no longer increases.

      Would it be possible to no longer display these <discarded> messages to keep access the relevant traces in the system logs?

      I haven't tried deploying Jenkins v2.332.3 on a Linux platform. Do these "<discarded>" messages only appear on Windows, or can they also appear on Linux?

          [JENKINS-68417] System log no longer usable as soon as it is full of "<discarded>" messages (regression in 2.325)

          Eric RAIMBAULT created issue -

          Basil Crow added a comment -

          CC'ing jglick who implemented this change in behavior. My understanding is that these messages only appear when the system is under memory pressure. So I think you should be able to make these messages disappear by increasing the heap size of your JVM.

          Basil Crow added a comment - CC'ing jglick who implemented this change in behavior. My understanding is that these messages only appear when the system is under memory pressure. So I think you should be able to make these messages disappear by increasing the heap size of your JVM.

          Jesse Glick added a comment -

          Or install support-core which will write log messages to disk.

          Jesse Glick added a comment - Or install support-core which will write log messages to disk.

          Basil Crow added a comment -

          Thanks Jesse. eraimbau Can you confirm that one of the above solutions works? I am planning to close this ticket as "Not a Defect" because this is the intended behavior. I will try and add something to the release notes.

          Basil Crow added a comment - Thanks Jesse. eraimbau Can you confirm that one of the above solutions works? I am planning to close this ticket as "Not a Defect" because this is the intended behavior. I will try and add something to the release notes.

          Basil Crow added a comment -

          I proposed a documentation update to the Upgrade Guide in jenkins-infra/jenkins.io#5116 since this has been confusing a number of users recently.

          Basil Crow added a comment - I proposed a documentation update to the Upgrade Guide in jenkins-infra/jenkins.io#5116 since this has been confusing a number of users recently.

          Jesse Glick added a comment -

          I think it should be left open as there is clearly a need for some compromise behavior that will normally retain log messages but will not leak large message format parameters.

          Jesse Glick added a comment - I think it should be left open as there is clearly a need for some compromise behavior that will normally retain log messages but will not leak large message format parameters.
          Basil Crow made changes -
          Labels New: regression

          Basil Crow added a comment -

          Sure, I will leave this open with the regression label then (see jenkinsci/jenkins#6044).

          Basil Crow added a comment - Sure, I will leave this open with the regression label then (see jenkinsci/jenkins#6044 ).
          Basil Crow made changes -
          Summary Original: System log no longer usable as soon as it is full of "<discarded>" messages New: System log no longer usable as soon as it is full of "<discarded>" messages (regression in 2.325)

          Eric RAIMBAULT added a comment - - edited

          On my Jenkins test server, I increased the heap size of my JVM (from "-Xmx256m" to "-Xms 512m -Xmx1024m") : I have slightly less <discarded> messages among the relevant messages in the system log page. Thank you for your responsive support.

          Eric RAIMBAULT added a comment - - edited On my Jenkins test server, I increased the heap size of my JVM (from "-Xmx256m" to "-Xms 512m -Xmx1024m") : I have slightly less <discarded> messages among the relevant messages in the system log page. Thank you for your responsive support.

            jglick Jesse Glick
            eraimbau Eric RAIMBAULT
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: