-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundIf it breaks the basic use of the product but can be worked aroundsource: core:uploadSource is core/upload packageSource is core/upload packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more informationWaiting for free time to reproduce the issue, or more information
Description
Describe the bug
Memory leak due to image uploading both with and without responsiveDimensions and sizeOptimization disabled via Media Library settings.
If you upload multiple images at the same, the memory consumption increases according to the number of images you're uploading.
Tested with:
strapi-provider-upload-local3.0.1strapi-provider-upload-aws-s33.0.0
Steps to reproduce the behavior
I run Strapi inside Docker, so I monitor memory usage by running docker stats
Have made a video:
- Start a fresh Strapi server ... memory usage
93 MB - turn off Image optimization and Responsive Dimensions via
/admin/settings/media-library3. go to the Media Library and upload an image490 kBin size ... memory usage now122 MB - upload another image
149 kBin size ... memory usage now135 MB - enable Image optimization and Responsive Dimension via
/admin/settings/media-library - upload another image
325 kBin size ... memory usage now257 MB
Expected behavior
I would expect the additional memory usage to be much lower and stable.
Screenshots
Video: https://drive.google.com/file/d/1wNVkRLKagVQuRp8Vuld6FADrilfmS00n/view?usp=sharing
System
- Node.js version: 12.16.3
- NPM version: 6.14.4
- Strapi version: 3.0.1
- Database: PostgreSQL
- Operating system: Debian Buster running inside Docker
MrRorg, lynndylanhurley, RamyTemim, boomaker, too-soon and 4 more
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundIf it breaks the basic use of the product but can be worked aroundsource: core:uploadSource is core/upload packageSource is core/upload packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more informationWaiting for free time to reproduce the issue, or more information