Hello! We’re starting to hit an issue where memory slowly rises, then once high enough, user connections start to timeout. Some details:
- Directus Version: Docker Image
directus/directus:11 - Using an S3-compatible bucket (Railway, alongside the Directus instance)
- PM2 is configured and stops instances as shown in our config (below) but after a while this mechanism seems to stop working and lets instance memory runwaway.
- Tested by running the image locally and running a script that requests a lot of files (about 512M each), and also saw this behavior
Some relevant config options we have set throughout the course of our troubleshooting. Is there something we’re not doing correctly with our setup?
```
PM2_INSTANCES=“1” # we had >1 before, and still hitting the issue, so we set to 1 to see if the restart mechanism was even working, which it seems it isn’t.
PM2_MAX_MEMORY_RESTART=“512M”
SYNCHRONIZATION_STORE=“redis”
REDIS_ENABLED=“true”
STORAGE_S3_CONNECTION_TIMEOUT=“30000”
ASSETS_CACHE_TTL=“1h”
CACHE_ENABLED=“true”
CACHE_TTL=“5m”
CACHE_VALUE_MAX_SIZE=“1000000”
CACHE_STORE=“redis”
PRESSURE_LIMITER_ENABLED=“true”
DB_CLIENT=“pg”
CACHE_AUTO_PURGE=“true”
DB_POOL__MIN=“0”
```
Screenshot of the memory graph. These sudden drops are restarts once we notice it’s affecting user connections
