docker-library/docs

apache 2 Workers limit

stele99 opened this issue · 1 comments

if nextlcloud is run in docker and a folder is browsed with lots of images (HIRES) then thumbnails are generated on the fly, if they do not exist already.
but this results in heavy CPU load and the docker machine freezes. (Out of Memory / CPU Load).
I have realized that there is no limit for "MaxRequestWorkers" in the apache config, so each thumbnail reuquest fires a apache2 process to be started. on limited machine resources this results in lots of hanging apache2 processes and all of them share the same cpu/memory. on low performance systems this results in a system freeze.

however to avoid system overload, nextcloud should queue image thumbnail generation requests and / or the apache webserver should be configurable to avoid overload of the instance.

tianon commented

I'm not sure how you ended up here, but this isn't the right place. 😅

From https://hub.docker.com/_/nextcloud:

...

(If you have some clues as to how you ended up here so we can try and fix whatever breadcrumbs landed you in this repository instead, that would be useful. 😅)