Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E9CC18AFC for ; Mon, 16 Nov 2015 23:24:16 +0000 (UTC) Received: (qmail 15588 invoked by uid 500); 16 Nov 2015 23:24:12 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 15546 invoked by uid 500); 16 Nov 2015 23:24:12 -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 15536 invoked by uid 99); 16 Nov 2015 23:24:12 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2015 23:24:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F3002C297D for ; Mon, 16 Nov 2015 23:24:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.128 X-Spam-Level: ** X-Spam-Status: No, score=2.128 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RP_MATCHES_RCVD=-0.773, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vfaSRjjnVNzd for ; Mon, 16 Nov 2015 23:24:03 +0000 (UTC) Received: from nm7-vm4.bullet.mail.ne1.yahoo.com (nm7-vm4.bullet.mail.ne1.yahoo.com [98.138.91.167]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6D91220C40 for ; Mon, 16 Nov 2015 23:24:02 +0000 (UTC) Received: from [98.138.100.113] by nm7.bullet.mail.ne1.yahoo.com with NNFMP; 16 Nov 2015 23:23:54 -0000 Received: from [98.138.88.232] by tm104.bullet.mail.ne1.yahoo.com with NNFMP; 16 Nov 2015 23:23:54 -0000 Received: from [127.0.0.1] by omp1032.mail.ne1.yahoo.com with NNFMP; 16 Nov 2015 23:23:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 850079.28304.bm@omp1032.mail.ne1.yahoo.com X-YMail-OSG: .WzDP2QVM1krReYgj4WiRr.d_xg5SS8XIYBQ09hItdkdfekFFo1fTNaNZ7D8BxE 2bfJVBIy8XztN42XvOanHeYuVotOi3KH38DoRdBTz9HpMxICUX8gMefChqk7Dh.gDdocd6NdNjLb _YlUkppQdBHcpZdMoASmkHZajNlzGmCjRySRU6tvHYwIWKhvrSl7hebaCHn7sNL6ZNk9dffv6hym 53i3TzBc9YEpESzMme4mvlSJoFM62FBQQxS4vrC7Kj2gk6OcmS3blX4Zb8pEoCefBqv.l0YSORBU aIN_81d3qXm.9cq6iTERjYq7ZQ5IMk6DuPBTNGxBcHqCByupmHks9kv96TMxWhGBDjE8td_pth.n _o5dZ2TLTUCHGMKvsRo.wABXxJHpZs8zCjxLCJinKBHFLIPzLSWEY8ldHeY_aIJAuIT_vxLZZax. wm9UOfw0_EWUSdi8S3ZagDctcpfQlYQMLqL0Rvj0.94vFOIvH1y.CWddEOg_pTtmx92mhYcEwMBcJ Received: by 98.138.101.177; Mon, 16 Nov 2015 23:23:54 +0000 Date: Mon, 16 Nov 2015 23:23:51 +0000 (UTC) From: o haya Reply-To: o haya To: "users@httpd.apache.org" , o haya Message-ID: <1954422895.4750771.1447716231634.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <1439194961.4704379.1447706662276.JavaMail.yahoo@mail.yahoo.com> References: <1439194961.4704379.1447706662276.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4750770_1190610261.1447716231622" Subject: Re: [users@httpd] Getting "connection refused" Apache 2.4 ------=_Part_4750770_1190610261.1447716231622 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Just as a kind of slightly-different sanity check, I did some testing on an= Apache 2.2.31 instance that I built awhile ago on one of my test CENTOS ma= chines: Server version: Apache/2.2.31 (Unix)Server built: =C2=A0 Oct =C2=A07 2015 1= 1:32:17Server's Module Magic Number: 20051115:40Server loaded: =C2=A0APR 1.= 5.2, APR-Util 1.5.4Compiled using: APR 1.5.2, APR-Util 1.5.4Architecture: = =C2=A0 64-bitServer MPM: =C2=A0 =C2=A0 Prefork=C2=A0 threaded: =C2=A0 =C2= =A0 no=C2=A0 =C2=A0 forked: =C2=A0 =C2=A0 yes (variable process count)Serve= r compiled with....=C2=A0-D APACHE_MPM_DIR=3D"server/mpm/prefork"=C2=A0-D A= PR_HAS_SENDFILE=C2=A0-D APR_HAS_MMAP=C2=A0-D APR_HAVE_IPV6 (IPv4-mapped add= resses enabled)=C2=A0-D APR_USE_SYSVSEM_SERIALIZE=C2=A0-D APR_USE_PTHREAD_S= ERIALIZE=C2=A0-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT=C2=A0-D APR_HAS_OTHER_CH= ILD=C2=A0-D AP_HAVE_RELIABLE_PIPED_LOGS=C2=A0-D DYNAMIC_MODULE_LIMIT=3D128= =C2=A0-D HTTPD_ROOT=3D"/apps/httpd"=C2=A0-D SUEXEC_BIN=3D"/apps/httpd/bin/s= uexec"=C2=A0-D DEFAULT_PIDLOG=3D"logs/httpd.pid"=C2=A0-D DEFAULT_SCOREBOARD= =3D"logs/apache_runtime_status"=C2=A0-D DEFAULT_LOCKFILE=3D"logs/accept.loc= k"=C2=A0-D DEFAULT_ERRORLOG=3D"logs/error_log"=C2=A0-D AP_TYPES_CONFIG_FILE= =3D"conf/mime.types"=C2=A0-D SERVER_CONFIG_FILE=3D"conf/httpd.conf" Then, I ran essentially the same load test that I had been running earlier,= and, I get similar errors, e.g., connection refused. This is with the as-built Apache configuration settings (i.e., I haven't tr= ied tweaking them). This is kind of leading me to think that it may the Apache, built with the = above MPM model, may just not be able to sustain this kind of load error-fr= ee?=C2=A0 Thanks,Jim From: o haya To: "users@httpd.apache.org" =20 Cc: O. Haya =20 Sent: Monday, November 16, 2015 3:44 PM Subject: Re: [users@httpd] Getting "connection refused" Apache 2.4 =20 Hi Daniel, Unfortunately, the Apache I'm working with is part of a product, so I won't= be able to change to a different MPM type. I've been trying what you suggested (increasing MinSpareServers) but I stil= l get tons of connections refused, even when I can confirm that, for exampl= e, I get 500+ httpd instances at startup (e.g., ps -ef shows 500 instances)= . =C2=A0Is it possible that something else (e.g., the Redhat OS itself) is = limiting the number of connections? Thanks,Jim =20 From: Daniel To: users@httpd.apache.org; o haya =20 Sent: Monday, November 16, 2015 3:07 PM Subject: Re: [users@httpd] Getting "connection refused" Apache 2.4 =20 migrate to worker or event...if you have to stick with prefork mpm, increas= e the number of MinSpareServers to a very high number, prefork is very slow= spawning new children since it is not threaded, so better spawn most when = apache starts. El lun., 16 nov. 2015 a las 20:58, o haya () escri= bi=C3=B3: Hi, I am trying to do some load testing of Apache 2.4 on Redhat. Configuration displayed when I run "httpd -V" shows: Server MPM: prefork threaded: no forked: yes (variable process count) I am using Jmeter to test, and when I increase the number of simultaneous t= hreads to > 200, I am seeing increasing number of errors, with a lot of "co= nnection refused" errors, e.g.: org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.3.= 10:80 refused =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.impl.conn.DefaultClientConne= ctionOperator.openConnection(DefaultClientConnectionOperator.java:190) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.impl.conn.ManagedClientConne= ctionImpl.open(ManagedClientConnectionImpl.java:294) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.protocol.http.sampler.Meas= uringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.j= ava:107) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.impl.client.DefaultRequestDi= rector.tryConnect(DefaultRequestDirector.java:643) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.impl.client.DefaultRequestDi= rector.execute(DefaultRequestDirector.java:479) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.impl.client.AbstractHttpClie= nt.execute(AbstractHttpClient.java:906) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.impl.client.AbstractHttpClie= nt.execute(AbstractHttpClient.java:805) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.protocol.http.sampler.HTTP= HC4Impl.executeRequest(HTTPHC4Impl.java:517) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.protocol.http.sampler.HTTP= HC4Impl.sample(HTTPHC4Impl.java:331) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.protocol.http.sampler.HTTP= SamplerProxy.sample(HTTPSamplerProxy.java:74) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.protocol.http.sampler.HTTP= SamplerBase.sample(HTTPSamplerBase.java:1146) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.protocol.http.sampler.HTTP= SamplerBase.sample(HTTPSamplerBase.java:1135) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.threads.JMeterThread.proce= ss_sampler(JMeterThread.java:434) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.jmeter.threads.JMeterThread.run(J= MeterThread.java:261) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Unknown Source) Caused by: java.net.ConnectException: Connection timed out: connect =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.DualStackPlainSocketImpl.waitForCon= nect(Native Method) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.DualStackPlainSocketImpl.socketConn= ect(Unknown Source) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.AbstractPlainSocketImpl.doConnect(U= nknown Source) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.AbstractPlainSocketImpl.connectToAd= dress(Unknown Source) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.AbstractPlainSocketImpl.connect(Unk= nown Source) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.PlainSocketImpl.connect(Unknown Sou= rce) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.SocksSocketImpl.connect(Unknown Sou= rce) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.net.Socket.connect(Unknown Source) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.conn.scheme.PlainSocketFacto= ry.connectSocket(PlainSocketFactory.java:127) =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.http.impl.conn.DefaultClientConne= ctionOperator.openConnection(DefaultClientConnectionOperator.java:180) =C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 14 more I've been trying to re-configure the Apache to avoid these errors, e.g., in= creasing "MaxClients", and I've also increased the amount of memory for the= machine (to 4GB) but so far, nothing I have done has improved the situatio= n. Is there something else that I can do to try to get the Apache so that it c= an accept the larger number of connections? Thanks, Jim --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org =20 ------=_Part_4750770_1190610261.1447716231622 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Just as a kind of sligh= tly-different sanity check, I did some testing on an Apache 2.2.31 instance= that I built awhile ago on one of my test CENTOS machines:

Server version: Apache/2.2.31 (= Unix)
Server bu= ilt:   Oct  7 2015 11:32:17
Server's Module Magic Number: 20051115:40
Server loaded:  APR = 1.5.2, APR-Util 1.5.4
Compiled using: APR 1.5.2, APR-Util 1.5.4
Architecture:   64-bit
Server MPM:     P= refork
  t= hreaded:     no
    forked:     yes (variable process count)=
Server compile= d with....
&nbs= p;-D APACHE_MPM_DIR=3D"server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv= 4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN= _UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=3D1= 28
 -D HTT= PD_ROOT=3D"/apps/httpd"
 -D SUEXEC_BIN=3D"/apps/httpd/bin/suexec"
 -D DEFAULT_PIDLOG=3D"logs/ht= tpd.pid"
 = -D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE=3D"logs/acc= ept.lock"
 = ;-D DEFAULT_ERRORLOG=3D"logs/error_log"
 -D AP_TYPES_CONFIG_FILE=3D"conf/mime.types"<= /div>
 -D SERVER_CONFIG_FILE=3D"conf/http= d.conf"

Then, I ran esse= ntially the same load test that I had been running earlier, and, I get simi= lar errors, e.g., connection refused.

This is with the as-built Apache confi= guration settings (i.e., I haven't tried tweaking them).

This is kind of lea= ding me to think that it may the Apache, built with the above MPM model, ma= y just not be able to sustain this kind of load error-free? 

Thanks,
Jim

From: o= haya <ohaya@yahoo.com.INVALID>
To: "users@httpd.apache.org" <users@httpd.apache.org>=
Cc: O. Haya <ohaya= @yahoo.com>
Sent: = Monday, November 16, 2015 3:44 PM
Subject: Re: [users@httpd] Getting "connection refused" Apache = 2.4

Hi= Daniel,

Unfortunately, the Apache I'm working with is part of a product, so I= won't be able to change to a different MPM type.

I've been trying= what you suggested (increasing MinSpareServers) but I still get tons of co= nnections refused, even when I can confirm that, for example, I get 500+ ht= tpd instances at startup (e.g., ps -ef shows 500 instances).  Is it po= ssible that something else (e.g., the Redhat OS itself) is limiting the num= ber of connections?

Thanks,
Jim

=




From: Daniel <dferradal@gmail.com><= br clear=3D"none"> To: user= s@httpd.apache.org; o haya <ohaya@yahoo.com>
<= span style=3D"font-weight:bold;">Sent: Monday, November 16, 2015= 3:07 PM
Subject: Re: [users@httpd] Getting "connection refused" Apache 2.4

migrate to worker or event...
if you have to stick w= ith prefork mpm, increase the number of MinSpareServers to a very high numb= er, prefork is very slow spawning new children since it is not threaded, so= better spawn most when apache starts.



<= /div>
El lun., 16 nov. 2015 a las 20:58, o hay= a (<ohaya@yahoo.com.invalid>) escribi=C3=B3:
=
Hi,

I am trying to do some load testing of Apache 2.4 on Redhat.

Configuration displayed when I run "httpd -V" shows:

Server MPM: prefork
threaded: no
forked: yes (variable process count)

I am using Jmeter to test, and when I increase the number of simultaneous t= hreads to > 200, I am seeing increasing number of errors, with a lot of = "connection refused" errors, e.g.:

org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.3.10:80 refus= ed
        at org.apache.http.impl.conn.DefaultClientConne= ctionOperator.openConnection(DefaultClientConnectionOperator.java:190)
        at org.apache.http.impl.conn.ManagedClientConne= ctionImpl.open(ManagedClientConnectionImpl.java:294)
        at org.apache.jmeter.protocol.http.sampler.Meas= uringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.j= ava:107)
        at org.apache.http.impl.client.DefaultRequestDi= rector.tryConnect(DefaultRequestDirector.java:643)
        at org.apache.http.impl.client.DefaultRequestDi= rector.execute(DefaultRequestDirector.java:479)
        at org.apache.http.impl.client.AbstractHttpClie= nt.execute(AbstractHttpClient.java:906)
        at org.apache.http.impl.client.AbstractHttpClie= nt.execute(AbstractHttpClient.java:805)
        at org.apache.jmeter.protocol.http.sampler.HTTP= HC4Impl.executeRequest(HTTPHC4Impl.java:517)
        at org.apache.jmeter.protocol.http.sampler.HTTP= HC4Impl.sample(HTTPHC4Impl.java:331)
        at org.apache.jmeter.protocol.http.sampler.HTTP= SamplerProxy.sample(HTTPSamplerProxy.java:74)
        at org.apache.jmeter.protocol.http.sampler.HTTP= SamplerBase.sample(HTTPSamplerBase.java:1146)
        at org.apache.jmeter.protocol.http.sampler.HTTP= SamplerBase.sample(HTTPSamplerBase.java:1135)
        at org.apache.jmeter.threads.JMeterThread.proce= ss_sampler(JMeterThread.java:434)
        at org.apache.jmeter.threads.JMeterThread.run(J= MeterThread.java:261)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.wa= itForConnect(Native Method)
        at java.net.DualStackPlainSocketImpl.so= cketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doC= onnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.con= nectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.con= nect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Sou= rce)
        at java.net.SocksSocketImpl.connect(Unknown Sou= rce)
        at java.net.Socket.connect(Unknown Source)
        at org.apache.http.conn.scheme.PlainSocketFacto= ry.connectSocket(PlainSocketFactory.java:127)
        at org.apache.http.impl.conn.DefaultClientConne= ctionOperator.openConnection(DefaultClientConnectionOperator.java:180)
        ... 14 more


I've been trying to re-configure the Apache to avoid these errors, e.g., in= creasing "MaxClients", and I've also increased the amount of memory for the= machine (to 4GB) but so far, nothing I have done has improved the situatio= n.

Is there something else that I can do to try to get the Apache so that it c= an accept the larger number of connections?

Thanks,
Jim



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



=


=
------=_Part_4750770_1190610261.1447716231622--