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

Reduce the amount of Process information retrieved in the auto-locker

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.5
    • Fix Version/s: 4.4.2
    • Component/s: Lock / Autolock

      Description

      When looking for opened files, the current code does:

      # function: get_open_files() from autolock.py
      for proc in psutil.process_iter():
          ....
      

      This returns a lot of unused informations and we are seeing several memory errors in that function. As we just need the PID, we could lower the amount of data retrieved using:

      for proc in psutil.process_iter(attrs=["pid"]):
          ....
      

        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
                1h

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.