{"id":275,"date":"2020-06-21T20:26:43","date_gmt":"2020-06-21T18:26:43","guid":{"rendered":"https:\/\/nissel.it\/?p=275"},"modified":"2020-07-23T22:14:56","modified_gmt":"2020-07-23T20:14:56","slug":"apache-fcgid-tuning","status":"publish","type":"post","link":"https:\/\/nissel.it\/index.php\/2020\/06\/21\/apache-fcgid-tuning\/","title":{"rendered":"Apache fcgid Tuning"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In den Default Einstellungen ist der Apache in einer Plesk Installation sehr sparsam im RAM Verbrauch. Die Reaktionszeit l\u00e4sst aber zu w\u00fcnschen \u00fcbrig.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">PHP fcgid Eisntellungen <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In der \/etc\/apache2\/mods-enabled\/fcgid.conf k\u00f6nnen die bereits gestarteten FCGI Instanzen eingestellt werden. Entscheidend ist der Parameter FcgidMinProcessesPerClass.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FcgidIdleTimeout 120\nFcgidProcessLifeTime 300\nFcgidMaxProcesses 200\nFcgidMaxProcessesPerClass 20\nFcgidMinProcessesPerClass 5\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In einer Moddle Installation hatte ich manchmal das Problem, dass der output Buffer anscheinend nicht ausreichend war. Siehe auch <a href=\"https:\/\/support.plesk.com\/hc\/en-us\/articles\/213399589-Websites-on-Plesk-server-are-slow-or-PHP-mail-cannot-be-sent-mod-fcgid-ap-pass-brigade-failed\">support.plesk.com<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">FcgidOutputBufferSize 0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache Einstellungen<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In der Datei \/etc\/apache2\/mods-enabled\/mpm_event.conf k\u00f6nnen die Apache Einstellungen vorgenommen werden. Die wichtigsten Parameter sind hier StartServers und MinSpareThreads. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule mpm_event_module>\n        StartServers             10\n        MinSpareThreads          25\n        MaxSpareThreads          75\n        ThreadLimit              64\n        ThreadsPerChild          25\n        MaxRequestWorkers        150\n        MaxConnectionsPerChild   0\n&lt;\/IfModule><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Linux: Ubuntu 18.04.4<br>Plesk: Obsidian 18.0.27<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Links<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/2bits.com\/articles\/apache-fcgid-acceptable-performance-and-better-resource-utilization.html\">https:\/\/2bits.com\/articles\/apache-fcgid-acceptable-performance-and-better-resource-utilization.html<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/support.plesk.com\/hc\/en-us\/articles\/213399589-Websites-on-Plesk-server-are-slow-or-PHP-mail-cannot-be-sent-mod-fcgid-ap-pass-brigade-failed\">https:\/\/support.plesk.com\/hc\/en-us\/articles\/213399589-Websites-on-Plesk-server-are-slow-or-PHP-mail-cannot-be-sent-mod-fcgid-ap-pass-brigade-failed<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In den Default Einstellungen ist der Apache in einer Plesk Installation sehr sparsam im RAM Verbrauch. Die Reaktionszeit l\u00e4sst aber zu w\u00fcnschen \u00fcbrig.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[15],"class_list":["post-275","post","type-post","status-publish","format-standard","hentry","category-webserver","tag-apache"],"_links":{"self":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":2,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts\/275\/revisions\/285"}],"wp:attachment":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}