<div dir="ltr"><div dir="ltr">On Fri, Jan 7, 2022 at 4:11 PM Michal Koutný <<a href="mailto:mkoutny@suse.com">mkoutny@suse.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">More viable way seems to me to modify the apache2-mpm-itk to put<br>
children into respective cgroups.<br></blockquote><div><br></div><div>I'm assuming that the resource usage primarily comes from something like webapps running via mod_php, rather than Apache itself, in which case a better approach would be to move the webapps out of apache entirely. At work we also looked into mpm-itk for a student "shared hosting" server, but instead ended up with a setup where each user automatically gets their own PHP-FPM pool (with each vhost configured to talk to their own PHP-FPM socket), so resource limits could be set either at PHP-FPM level, or if needed multiple php-fpm@.service instances could be run with their own cgroups.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>