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 602DF200C2B for ; Thu, 2 Mar 2017 12:35:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5EC1E160B6F; Thu, 2 Mar 2017 11:35:33 +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 80978160B61 for ; Thu, 2 Mar 2017 12:35:32 +0100 (CET) Received: (qmail 89421 invoked by uid 500); 2 Mar 2017 11:35:31 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 89410 invoked by uid 99); 2 Mar 2017 11:35:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2017 11:35:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C87971A7B27 for ; Thu, 2 Mar 2017 11:35:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.952 X-Spam-Level: * X-Spam-Status: No, score=1.952 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GQeX3uLmvA7R for ; Thu, 2 Mar 2017 11:35:28 +0000 (UTC) Received: from resqmta-po-07v.sys.comcast.net (resqmta-po-07v.sys.comcast.net [96.114.154.166]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 830565FB61 for ; Thu, 2 Mar 2017 11:35:28 +0000 (UTC) Received: from resomta-po-14v.sys.comcast.net ([96.114.154.238]) by resqmta-po-07v.sys.comcast.net with SMTP id jOwecba6bO8EmjOwicqCBS; Thu, 02 Mar 2017 11:30:56 +0000 Received: from [192.168.199.10] ([69.251.90.98]) by resomta-po-14v.sys.comcast.net with SMTP id jOwhcJndLBKYljOwiccVSF; Thu, 02 Mar 2017 11:30:56 +0000 From: Jim Jagielski Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Date: Thu, 2 Mar 2017 06:30:55 -0500 References: <44B2B13E-52D0-48EC-8F2A-FFF30285A028@jaguNET.com> <9B090AB7-A946-4D69-9709-4A062E62649D@jaguNET.com> <2D753FF4-CD7F-4904-8AA6-447B56DB4BC3@eroi.com> To: users@httpd.apache.org In-Reply-To: Message-Id: <5BF250E1-5826-4BBD-850D-D0A38A82D028@jaguNET.com> X-Mailer: Apple Mail (2.3259) X-CMAE-Envelope: MS4wfMotN1y2HFFsKZOGXYHhBkgKBUezKCPLeqv3jYCE+t0NKKRw5f4xD3sG1MrG54P07YqP7IKzesSvqD0nZ8psIfdau2PRBWDo/G/WxnR35W8t4iTE11tT ZbKQgFT8QvlhluGZNoZiHIDSLNkstf86iXZHwqMnyVmROA2+fRSM6QGv Subject: Re: [users@httpd] Apache Crashing Everyday archived-at: Thu, 02 Mar 2017 11:35:33 -0000 Depending on your version of Tomcat it might be better to move to using mod_proxy_ajp or even switching to Tomcat's http listener and talking HTTP. > On Mar 2, 2017, at 1:55 AM, Jayaram Ponnusamy = wrote: >=20 > Hi Jim & Jason, >=20 > Yes We are planning to upgrade to httpd 2.4.25 (Stable Version). So, = in the 2.4.25 also we should use mod_jk to connect with Tomcat or = anyother better options are there? > Tomcat instances are running on different machines. > And mod_php is not configured. > Thanks=20 >=20 >=20 > On Wed, Mar 1, 2017 at 9:19 PM, Jason Brooks = wrote: > Hello, >=20 > You will also need to turn off mod_php if it=E2=80=99s loaded. >=20 > =E2=80=94jason >=20 > Jason Brooks Systems Administrator > eROI Performance is Art. > =20 > m: 505 nw couch #300 w: eroi.com > t: 503.290.3105 f: 503.228.4249 >=20 >=20 > fb: fb.com/eROI >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >> On Mar 1, 2017, at 8:35 AM, Jim Jagielski wrote: >>=20 >> If you can, I would upgrade to httpd 2.4.x... If you must >> stay w/ 2.2.x, then Worker might be more reliable for you >> than Event. >>=20 >>> On Mar 1, 2017, at 9:56 AM, Jayaram Ponnusamy = wrote: >>>=20 >>> Thanks Jim for the suggestion. >>> I will update >>> Timeout 5 >>> KeepAliveTimeout 2 >>>=20 >>> We are using Apache 2.2.23 >>> We will try to install Event MPM and will check. >>> Thanks >>> Jay >>>=20 >>>=20 >>>=20 >>> On Mar 1, 2017 5:05 PM, "Jim Jagielski" wrote: >>> You should not be using prefork unless you really, really need to. >>>=20 >>> Assuming you are running 2.4.x, I would strongly suggest running >>> the Event MPM. >>>=20 >>> Your Timeout and KeepAliveTimeout values are also way too big; >>> I'd recommend 5 and 2, respectively. >>>=20 >>>> On Mar 1, 2017, at 4:19 AM, Jayaram Ponnusamy = wrote: >>>>=20 >>>> Dear All, >>>>=20 >>>> We are using 2 Apache & 2 Tomcat with LoadBalance. Everyday the = site is goes down and restarting Apache & Tomcat only help to bring the = site back. >>>>=20 >>>> I could see below errors on WebServer's Error Log, when the "total = children" count increased more than 200 then Apache is not responding. I = have included my prefork configuration below. Kindly please help to = resolve this issue. >>>>=20 >>>> [Wed Mar 01 11:46:39 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 8 children, = there are 1 idle, and 464 total children >>>> [Wed Mar 01 11:47:25 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 8 children, = there are 0 idle, and 507 total children >>>> [Wed Mar 01 11:47:34 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 8 children, = there are 0 idle, and 522 total children >>>> [Wed Mar 01 11:47:35 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 16 children, = there are 3 idle, and 530 total children >>>> [Wed Mar 01 11:48:22 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 8 children, = there are 0 idle, and 578 total children >>>> [Wed Mar 01 11:48:23 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 16 children, = there are 0 idle, and 586 total children >>>> [Wed Mar 01 11:48:24 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 602 total children >>>> [Wed Mar 01 11:48:25 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 634 total children >>>> [Wed Mar 01 11:48:26 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 666 total children >>>> [Wed Mar 01 11:48:27 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 698 total children >>>> [Wed Mar 01 11:48:28 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 730 total children >>>> [Wed Mar 01 11:48:29 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 762 total children >>>> [Wed Mar 01 11:48:30 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 794 total children >>>> [Wed Mar 01 11:48:31 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 826 total children >>>> [Wed Mar 01 11:48:32 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 858 total children >>>> [Wed Mar 01 11:48:33 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 32 children, = there are 0 idle, and 890 total children >>>> [Wed Mar 01 11:49:08 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 8 children, = there are 0 idle, and 944 total children >>>> [Wed Mar 01 11:49:09 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 16 children, = there are 2 idle, and 952 total children >>>> [Wed Mar 01 11:50:14 2017] [info] server seems busy, (you may need = to increase StartServers, or Min/MaxSpareServers), spawning 8 children, = there are 3 idle, and 934 total children >>>>=20 >>>>=20 >>>> mod_jk.log >>>> [Wed Mar 01 11:58:14 2017][24547:2663257856] [info] = jk_open_socket::jk_connect.c (594): connect to 100.10.661.32:8009 failed = (errno=3D110) >>>> [Wed Mar 01 11:58:14 2017][24547:2663257856] [info] = ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to = (100.10.661.32:8009) (errno=3D110) >>>> [Wed Mar 01 11:58:14 2017][24547:2663257856] [error] = ajp_send_request::jk_ajp_common.c (1507): (live_svr) connecting to = backend failed. Tomcat is probably not started or is listening on the = wrong port (errno=3D110) >>>> [Wed Mar 01 11:58:14 2017][24547:2663257856] [info] = ajp_service::jk_ajp_common.c (2447): (live_svr) sending request to = tomcat failed (recoverable), because of error during request sending = (attempt=3D1) >>>> [Wed Mar 01 11:58:14 2017][24318:2663257856] [info] = jk_open_socket::jk_connect.c (594): connect to 100.10.661.32:8009 failed = (errno=3D110) >>>> [Wed Mar 01 11:58:14 2017][24318:2663257856] [info] = ajp_connect_to_endpoint::jk_ajp_common.c (922): Failed opening socket to = (100.10.661.32:8009) (errno=3D110) >>>> [Wed Mar 01 11:58:14 2017][24318:2663257856] [error] = ajp_send_request::jk_ajp_common.c (1507): (live_svr) connecting to = backend failed. Tomcat is probably not started or is listening on the = wrong port (errno=3D110) >>>> [Wed Mar 01 11:58:14 2017][24318:2663257856] [info] = ajp_service::jk_ajp_common.c (2447): (live_svr) sending request to = tomcat failed (recoverable), because of error during request sending = (attempt=3D1) >>>> [Wed Mar 01 11:58:14 2017][24282:2663257856] [info] = jk_open_socket::jk_connect.c (594): connect to 100.10.661.32:8009 failed = (errno=3D110) >>>> = --------------------------------------------------------------------------= ----- >>>> httpd.conf: >>>> KeepAlive On >>>> Timeout 300 >>>> MaxKeepAliveRequests 100 >>>> KeepAliveTimeout 15 >>>>=20 >>>> >>>> StartServers 80 >>>> ServerLimit 3500 >>>> MaxClients 3500 >>>> MaxRequestsPerChild 0 >>>> >>>>=20 >>>> mod_jk.conf: >>>> >>>> StartServers 6 >>>> MaxClients 230 >>>> MinSpareThreads 75 >>>> MaxSpareThreads 150 >>>> ThreadsPerChild 25 >>>> MaxRequestsPerChild 0 >>>> >>>>=20 >>>> Daily 20K Plus People will visit our sites. Kindly please provide = the solution to resolve this issue. >>>>=20 >>>> -- >>>> Thanks & Regards, >>>>=20 >>>> Jayaram Ponnusamy >>>>=20 >>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >>> For additional commands, e-mail: users-help@httpd.apache.org >>>=20 >>>=20 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >>=20 >=20 >=20 >=20 >=20 > --=20 > Thanks & Regards, >=20 > Jayaram Ponnusamy=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org