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

(timebox) Investigate memory errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.4.2
    • Component/s: Lock / Autolock

      Description

      Issues

      Sentry Issue: NUXEO-DRIVE-1Z9

      PermissionError: [WinError 5] Accès refusé
        File "lib\site-packages\psutil\_pswindows.py", line 935, in create_time
      
      AttributeError: _cache
        File "lib\site-packages\psutil\_common.py", line 342, in wrapper
      
      MemoryError: null
        File "nxdrive\autolocker.py", line 66, in _poll
        File "nxdrive\autolocker.py", line 81, in _process
        File "nxdrive\autolocker.py", line 157, in get_open_files
        File "__init__.py", line 1570, in process_iter
        File "__init__.py", line 694, in is_running
        File "__init__.py", line 446, in __init__
        File "__init__.py", line 473, in _init
        File "__init__.py", line 823, in create_time
        File "lib\site-packages\psutil\_pswindows.py", line 716, in wrapper
        File "lib\site-packages\psutil\_pswindows.py", line 938, in create_time
        File "lib\site-packages\psutil\_pswindows.py", line 716, in wrapper
        File "lib\site-packages\psutil\_common.py", line 345, in wrapper
        File "lib\site-packages\psutil\_pswindows.py", line 746, in oneshot_info
      

      Sentry Issue: NUXEO-DRIVE-1Z6

      MemoryError: null
        File "nxdrive\engine\processor.py", line 281, in _execute
        File "nxdrive\engine\processor.py", line 804, in _synchronize_locally_created
        File "nxdrive\client\remote_client.py", line 647, in stream_file
        File "nxdrive\client\remote_client.py", line 332, in upload
        File "nxdrive\client\remote_client.py", line 442, in upload_chunks
        File "lib\site-packages\nuxeo\uploads.py", line 399, in iter_upload
      

      Understanding

      It seems the user has either (or a combination of):

      • small RAM;
      • too many opened applications on the OS, and the amount dedicated to Nuxeo Drive is too small;
      • part(s) of Nuxeo Drive has a memory consumption way higher than expected.

      Solutions

      1) A possibility may be to use a 64-bit version of Python. The ticket NXDRIVE-1057 would help.
      2) Investigating Drive memory consumption might help, but it is a hard work and may not be worth right now.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 minute
                  1m