Closed mist0706 closed 3 years ago
I'm not familiar with zoneminder but you'll need to configure it to automatically purge its drop folder to keep the number of images there to a reasonable amount.
See https://github.com/danecreekphotography/node-deepstackai-trigger/wiki/Troubleshooting#problem-the-container-causes-80-cpu-usage for what this configuration looks like when using BlueIris.
Describe the bug I have been using zoneminder for quite a while and due to the structure of folders where the images are places i am forced to glob a large amount of files (900k+). When starting the trigger container it seems it has to go through all the files and store some of this data in memory. After reaching about 8GB the container is OOM killed.
Log entries
Installation details
services: trigger: container_name: trigger volumes:
Change d:/myfolder/myimages to point to the folder that will have the images
deepstack-ai: container_name: deepstack-ai image: deepquestai/deepstack:gpu runtime: nvidia restart: always ports:
deploy:
volumes:
VISION-DETECTION=True
deepstack_ui: container_name: deepstack-ui restart: unless-stopped image: robmarkcole/deepstack-ui environment:
volumes: localstorage:
secrets: settings:
This should point to the location of the settings.json configuration file
triggers:
This should point to the location of the triggers.json configuration file