Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B7300200C39 for ; Thu, 16 Mar 2017 12:32:28 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B5BDC160B7A; Thu, 16 Mar 2017 11:32:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DCAA6160B78 for ; Thu, 16 Mar 2017 12:32:27 +0100 (CET) Received: (qmail 27557 invoked by uid 500); 16 Mar 2017 11:32:22 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 27546 invoked by uid 99); 16 Mar 2017 11:32:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2017 11:32:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0C874C0B3C for ; Thu, 16 Mar 2017 11:32:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8eklfscpDNl9 for ; Thu, 16 Mar 2017 11:32:18 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id F04435F645 for ; Thu, 16 Mar 2017 11:32:17 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id u132so32574770wmg.0 for ; Thu, 16 Mar 2017 04:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=MEcBBMEgkojXlzzCgSWVzJIWlIGjQfRqJTTovHCL/5I=; b=Y9IcXPSwRYeae9GH6G7tSzkJMhFZX8dex5HS9jljm2RW5uVbQ7DUyscp9GkGamAVtg XhyF7xicXzcy6B1+5FVccYbPcKe4S7LT71cVQ6GQRJXDYBrcN41C3rSgzzJiQ1Dp4mpf lE4RNHTNj2DupQWN96b4ITJTw6j34tXYzmvwm7C1RHtKxn/vhrhMHduSVzzfL/miqEA2 Hhynb+yblaArt3dixTKjrd3ZjGLBq2GtxvAM7LMKFJbwEH/JwuBM9zKXISodE5oACuyN b7T1u/zes1vADeZackr6P6kGfUJCt43MT7zvyZg+aTkJ8qWOaYaamCX4SXSrP4msqSxm ltAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=MEcBBMEgkojXlzzCgSWVzJIWlIGjQfRqJTTovHCL/5I=; b=fXoa5cqCm+Tzj+nLcNqPoauzGKrcYgDQ9CKHdd12vVA8wQPQpl/QOc+YjM/oBLhTAm gOgzRlgeapYsE4Tux8ouEdr42xs7Wow5m0Y+h9XuJ3z+JijedyifPSJh/5OclTy1UlQB AE5eZGjCO6+0ffDMeYyES2QZdOeMg7sanIuXrH2eyjaI0Q80CUsUSqf2VaEkgrnGpjZ2 3jTA7DYBjKix/JEReMclGJ31mmwOo93H+eUbhlzjq7VQZanNmTP1VIRJxvmMrW6UtRi3 N8oRAi45kTICH2ACXF8N5n4CHM8rRf+VBbWIRM99ZIAs+GrAIBEQP1PZerKjpBvz2T8u pZtg== X-Gm-Message-State: AFeK/H1py04rPktWijdFFt/tqTQd94iE2CxZ3fN2lzTymAXoEgk//i8xraq56W86FlXKTSF1wmM8KaOAUJveUg== X-Received: by 10.28.100.193 with SMTP id y184mr8532146wmb.2.1489663574065; Thu, 16 Mar 2017 04:26:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.25.2 with HTTP; Thu, 16 Mar 2017 04:26:13 -0700 (PDT) In-Reply-To: <43c3a7ed-e86b-1543-a18f-255e747ad680@profihost.ag> References: <43c3a7ed-e86b-1543-a18f-255e747ad680@profihost.ag> From: Luca Toscano Date: Thu, 16 Mar 2017 12:26:13 +0100 Message-ID: Subject: Re: Apache 2.4.26 AH: scoreboard is full, not at MaxRequestWorkers.Increase,ServerLimit To: Apache HTTP Server Development List Content-Type: multipart/alternative; boundary=001a114af65e2acb77054ad7545d archived-at: Thu, 16 Mar 2017 11:32:28 -0000 --001a114af65e2acb77054ad7545d Content-Type: text/plain; charset=UTF-8 Hi Stefan, 2017-03-16 12:14 GMT+01:00 Stefan Priebe - Profihost AG < s.priebe@profihost.ag>: > Hi Yann, > > no sure whether this is due to your mpm event patch. > > From time to time i see the following error mesages in my logs and the > only chance to fix it is to restart apache. > > [Thu Mar 16 01:00:35.445184 2017] [mpm_event:error] [pid 27485:tid > 140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase > ServerLimit. > [Thu Mar 16 01:00:36.446178 2017] [mpm_event:error] [pid 27485:tid > 140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase > ServerLimit. > [Thu Mar 16 01:00:37.447181 2017] [mpm_event:error] [pid 27485:tid > 140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase > ServerLimit. > [Thu Mar 16 01:00:38.448177 2017] [mpm_event:error] [pid 27485:tid > 140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase > ServerLimit. > [Thu Mar 16 01:00:39.449185 2017] [mpm_event:error] [pid 27485:tid > 140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase > ServerLimit. > [Thu Mar 16 01:00:40.450184 2017] [mpm_event:error] [pid 27485:tid > 140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase > ServerLimit. > > Settings: > ServerLimit 50 > ThreadLimit 200 > ThreadsPerChild 200 > MinSpareThreads 200 > MaxSpareThreads 400 > MaxClients 10000 > MaxRequestsPerChild 10000 > > MaxRequestWorkers isn't set at all. > I believe that MaxClients (its old name) takes the place of MaxRequestWorkers, but it is set as the default value (ServerLimit * ThreadsPerChild). From 2.4.25 onwards mpm-event offers a new functionality to handle Gracefully terminating processes ( https://httpd.apache.org/docs/current/mod/event.html#how-it-works), but it must be tuned raising the value of ServerLimit (more details in the docs). This is only a speculation from my side, to have a better idea of what's happening it would be great to see how the Scoreboard looks like in server status, and if the error status happens during specific events like graceful reload for log rotation. Hope that helps! As always, thanks a lot for your tests :) Luca --001a114af65e2acb77054ad7545d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Stefan,

2017-03-16 12:14 GMT+01:00 Stefan Priebe - Profihost AG <s.p= riebe@profihost.ag>:
Hi Yann,

no sure whether this is due to your mpm event patch.

From time to time i see the following error mesages in my logs and the
only chance to fix it is to restart apache.

[Thu Mar 16 01:00:35.445184 2017] [mpm_event:error] [pid 27485:tid
140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase<= br> ServerLimit.
[Thu Mar 16 01:00:36.446178 2017] [mpm_event:error] [pid 27485:tid
140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase<= br> ServerLimit.
[Thu Mar 16 01:00:37.447181 2017] [mpm_event:error] [pid 27485:tid
140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase<= br> ServerLimit.
[Thu Mar 16 01:00:38.448177 2017] [mpm_event:error] [pid 27485:tid
140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase<= br> ServerLimit.
[Thu Mar 16 01:00:39.449185 2017] [mpm_event:error] [pid 27485:tid
140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase<= br> ServerLimit.
[Thu Mar 16 01:00:40.450184 2017] [mpm_event:error] [pid 27485:tid
140212799559552] AH: scoreboard is full, not at MaxRequestWorkers.Increase<= br> ServerLimit.

Settings:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ServerLimit=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A050
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ThreadLimit=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0200
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ThreadsPerChild=C2=A0 =C2=A0 =C2=A0 =C2=A0 200<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 MinSpareThreads=C2=A0 =C2=A0 =C2=A0 =C2=A0 200<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 MaxSpareThreads=C2=A0 =C2=A0 =C2=A0 =C2=A0 400<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 MaxClients=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A010000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 MaxRequestsPerChild=C2=A0 =C2=A0 10000

MaxRequestWorkers isn't set at all.

I believe that MaxClients (its old name) takes the place of MaxRequestWork= ers, but it is set as the default value (ServerLimit * ThreadsPerChild). Fr= om 2.4.25 onwards mpm-event offers a new functionality to handle Gracefully= terminating processes (https://httpd.apache.org/docs/current/mod/event.= html#how-it-works), but it must be tuned raising the value of ServerLim= it (more details in the docs).

This is only a spec= ulation from my side, to have a better idea of what's happening it woul= d be great to see how the Scoreboard looks like in server status, and if th= e error status happens during specific events like graceful reload for log = rotation.=C2=A0

Hope that helps! As always, thanks= a lot for your tests :)

Luca=C2=A0
--001a114af65e2acb77054ad7545d--