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

FileFingerprintStorage performance

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.277, 2.263.4, and 2.277.1

      Description

      I believe that with JENKINS-62345, as there is only one point to create the fingerprint files on the disk, and that method is synchronized, we created the context to limit the number of fingerprint we can save on disk.

      This is a big performance issue when used with Maven plugin and a set of jobs with multiple modules. It creates a queue of fingerprint objects, waiting for the lock on the FileFingerprintStorage.

        Attachments

          Activity

          Hide
          batmat Baptiste Mathus added a comment -

          Adrien Lecharpentier are you aware of any stack trace in thread dumps showing this slowness' hypothesis? Merci  !

          Show
          batmat Baptiste Mathus added a comment - Adrien Lecharpentier  are you aware of any stack trace in thread dumps showing this slowness' hypothesis? Merci  !
          Hide
          allan_burdajewicz Allan BURDAJEWICZ added a comment - - edited

          One thread holds a lock on the FileFingerprintStorage

          	at jenkins.fingerprints.FileFingerprintStorage.save(FileFingerprintStorage.java:126)
          	- locked <0x00007f9b65846a98> (a jenkins.fingerprints.FileFingerprintStorage)
          

          Many others are BLOCKED waiting for the resource:

          	at jenkins.fingerprints.FileFingerprintStorage.save(FileFingerprintStorage.java:125)
          	- waiting to lock <0x00007f9b65846a98> (a jenkins.fingerprints.FileFingerprintStorage)
          
          Show
          allan_burdajewicz Allan BURDAJEWICZ added a comment - - edited One thread holds a lock on the FileFingerprintStorage at jenkins.fingerprints.FileFingerprintStorage.save(FileFingerprintStorage.java:126) - locked <0x00007f9b65846a98> (a jenkins.fingerprints.FileFingerprintStorage) Many others are BLOCKED waiting for the resource: at jenkins.fingerprints.FileFingerprintStorage.save(FileFingerprintStorage.java:125) - waiting to lock <0x00007f9b65846a98> (a jenkins.fingerprints.FileFingerprintStorage)

            People

            Assignee:
            alecharp Adrien Lecharpentier
            Reporter:
            alecharp Adrien Lecharpentier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: