apprise-api icon indicating copy to clipboard operation
apprise-api copied to clipboard

High memory usage

Open pikeas opened this issue 3 years ago • 2 comments

:lady_beetle: Describe the bug Official Docker container uses ~600+ MB of RAM baseline, no notifications or config.

:bulb: Screenshots and Logs

$ docker stats <container_id>
CONTAINER ID    NAME            CPU %   MEM USAGE / LIMIT   MEM %   NET I/O     BLOCK I/O     PIDS
<id>            apprise-<id>    0.05%   589.1MiB / 600MiB   98.19%  0B / 0B     0B / 8.19kB    28

pikeas avatar Jun 22 '22 02:06 pikeas

Mounting a substitute gunicorn.conf.py with workers = 2 reduced usage to 120 MB. It would be great if the worker count could be overridden as a CLI arg or env var.

pikeas avatar Jun 22 '22 02:06 pikeas

I believe i fixed this in the last merge request here.

You should be able to use APPRISE_WORKER_COUNT variable and set it to 2 to accomplish what you want.

caronc avatar Jun 26 '22 23:06 caronc

Closing off this issue as it has been open for some time now

caronc avatar Feb 25 '23 16:02 caronc