Skip to content

Uploading and downloading large files uses huge amounts of memory and crashes the host #517

@lgrn

Description

@lgrn

Description

I just saw this from the container health check:

{
  "status": "unhealthy",
  "timestamp": "2026-03-24T14:03:33.054Z",
  "checks": {
    "database": {
      "status": "healthy",
      "latency_ms": 1
    },
    "storage": {
      "status": "healthy"
    },
    "memory": {
      "status": "unhealthy",
      "heap_used_mb": 52,
      "heap_total_mb": 56,
      "rss_mb": 2819,
      "rss_threshold_mb": 1024
    }
  }
}

This seems to happen from just uploading and downloading a few files around 150 MB in size, originally this caused the entire VM to stop responding so I had to add this to the compose file to stop it from breaking the host:

services:
    hemmelig:
        deploy:
            resources:
                limits:
                    memory: 3.5G

From the health check though this amount of memory usage is apparently "unhealthy" so something might be wrong here.

This is v7.4.8

Screenshots

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions