cms-dev / cms-dev/cms

Memory usage when uploading test data

Open
#1,019 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

aws bug
Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

(This is something between a bug report and feature request :) )

When tried to upload a 200 MB ZIP file containing test data to the AWS, memory usage of the AWS process increased by approximately 400 MB. It seems that the AWS is storing the complete file in RAM and maybe twice :) It would be very nice to store it in a temporary file instead.

System Information

CMS version: v1.3.2
Was CMS installed: yes
Using a virtualenv: yes
Postgres version: 9.4
Distribution and version: Debian Stretch

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the CMS uploads test data and reproduce the reported behavior with a 200 MB ZIP file. Confirm where memory grows and whether temporary-file storage keeps usage bounded; done means the upload no longer retains the complete file in process memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.