directus / directus/directus

Issue with constant increasing memory usage

Open
#26,206 18 comments 0 reactions 0 assignees View on GitHub
AWS S3 Bug High Impact Integrations Med Reach Performance
Dominant language
TypeScript
Stars
37.9k
Forks
4.9k
Avg merge
3d 21h
Merged PRs (30d)
36

Description

### Describe the Bug

Hi,
We are using directus mostly for text content with a couple video files that are provided via S3.
And we are experiencing a high usage of memory over time that seem to be related to those video files.

The following pictures shows the usage of memory for the directus instance in a week.
The resets happen automatically after hitting a memory maximum threshold that will kill the pod and start a new one.
Image

what you can see:
- memory is steadily rising over time till it hits our maximum threshold
- the memory increase is less at night and weekend (less requests will lead to less memory allocation)

There are already similar issues reporting problems regarding video files via S3 in directus.
https://github.com/directus/directus/issues/21308
https://github.com/directus/directus/discussions/24921

### To Reproduce

1. add Videos via S3
2. constantly request those videos

### Directus Version

v11.13.2

### Hosting Strategy

Self-Hosted (Docker Image)

### Database

PostgreSQL 16

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.