Skip to content

High memory usage when creating subdirectories #493

Description

@OKT96

Module

dms

Describe the bug

We are running into a memory spike issue with the dms module and wanted to check if others have experienced the same. When creating a new subdirectory inside a directory that already has many subdirectories and files, memory usage spikes very high during save. In our case the parent directory has ~350 with a total of ~4000 files and ~700mb in size. On small servers with limited RAM this leads to a crash or an MemoryError

To Reproduce

Affected versions: 18.0

Steps to reproduce the behavior:

  1. Have a directory containing a large number of subdirectories and files
  2. Create a new subdirectory
  3. Click save
  4. Watch memory spike

Expected behavior
Creating a subdirectory should be lightweight and should not depend on existing content...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions