Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1876

Fix threads not totally released

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 4.3.0
    • Component/s: Synchronizer

      Description

      Issue

      When a thread has finished its work with a gien document to sync, it is not really freed.
      As a result, syncing a lot of files will fail on:

      OSError: [Errno 24] Trop de fichiers ouverts: '...'
      OSError: [Errno 24] Too many opened files: '...'

      Monitoring

      To monitor such behavior, I used this command on GNU/Linux:

      for i in $(seq 4096); do ps a | grep '[n]xdrive' | cut -d ' ' -f 1 | xargs lsof -p 2>/dev/null | wc -l && sleep 1; done
      

      The number of descriptors is bigger and bigger, until the limit is hit and Drive hard crash.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m