Skip to content

Running in container, memory never released #314

@aroundthecode

Description

@aroundthecode

Hi there,
I'm currently running imaginary as a kubernetes pod, everything is fine except the fact that container memory cache is never deallocated.

imaginary_ab

Testing with apache benchmarck causes memory to grow up until the pod reached its limit, become unresponsive and get killed by kubernetes probe.

imaginary

Currently I'm running with following parameters:

"containers": [
          {
            "name": "imaginary",
            "image": "h2non/imaginary",
            "args": [
              "-cors",
              "-enable-url-source",
              "-http-cache-ttl",
              "0",
              "-mrelease",
              "10"
            ],
            "env": [
              {
                "name": "MALLOC_ARENA_MAX",
                "value": "2"
              }
            ],
            "resources": {
              "limits": {
                "memory": "128Mi"
              },
              "requests": {
                "memory": "64Mi"
              }
            },

Is there any additional setting to have memory properly managed within a docker container ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions