logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Max concurrent connection for Apache as a module
Author
elavarasan



Joined: 26 Sep 2011
Posts: 53

PostPosted: Fri 07 Oct '11 20:52    Post subject: Max concurrent connection for Apache as a module Reply with quote

Can any one help me

What is the maximum concurrent connection for Apache as a module because if i increase ThreadsPerChild into 1900. and then i'm not able to run more than 300 concurrent connection by using

ab.exe -c 340 -n 400 http://IPAddress/

Thanks,
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Sat 08 Oct '11 2:43    Post subject: Reply with quote

Problem is with limit in Windows TCP

just type in Cmd:
reg add HKLM\System\CurrentControlSet\Services\HTTP\Parameters /v MaxConnections /t REG_DWORD /d 1000000
Back to top
elavarasan



Joined: 26 Sep 2011
Posts: 53

PostPosted: Sat 08 Oct '11 5:53    Post subject: Reply with quote

can you describe this more details because i want to do on live server. mine is windows server 2008 r2
Back to top
PipoDeClown



Joined: 20 Dec 2005
Posts: 77

PostPosted: Sat 08 Oct '11 15:11    Post subject: Reply with quote

you can find that info in
http://blogs.technet.com/b/winserverperformance/archive/2008/07/25/tuning-windows-server-2008-for-php.aspx
for IIS that is...
Back to top
elavarasan



Joined: 26 Sep 2011
Posts: 53

PostPosted: Sat 08 Oct '11 17:43    Post subject: Reply with quote

This one is for IIS7 but i'm using Apache as a handler on windows server 2008.
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Sat 08 Oct '11 19:54    Post subject: Reply with quote

Nope read:

Http/MaxConnections

This parameter controls the maximum number of concurrent TCPIP connections that HTTP will allow.

[ Need restart ]

+

<IfModule mpm_winnt.c>
ThreadsPerChild 1920
#ThreadsPerChild 1700
MaxRequestsPerChild 0
</IfModule>

+

use fcgid + wincache

FcgidMaxRequestLen 131072
IPCConnectTimeout 12
PHP_Fix_Pathinfo_Enable 1
OutputBufferSize 64
ProcessLifeTime 0
FcgidConnectTimeout 15
FcgidErrorScanInterval 15
DefaultMaxClassProcessCount 0
FcgidProcessLifeTime 0
IdleTimeout 0
FcgidZombieScanInterval 0
FcgidIdleScanInterval 900000000000000
FcgidTimeScore 9000000000000
FcgidSpawnScore 1
FcgidTerminationScore 10
FcgidSpawnScoreUpLimit 10
FcgidBusyTimeout 12
FcgidBusyScanInterval 12
FcgidIdleTimeout 9000000
FcgidMaxProcesses 6
FcgidMinProcessesPerClass 0
FcgidMaxProcessesPerClass 240
FcgidMaxRequestsPerProcess 0
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 5000000000
MaxRequestsPerProcess 0
FcgidMaxRequestsPerProcess 0

+

Install hardenit.exe - run as windows xp compatibility mode
Install secureit.exe - run as windows xp compatibility mode

http://www.filebuzz.com/fileinfo/37714/Secure_It.html
http://www.filebuzz.com/fileinfo/32081/Harden_It.html

Enabled Apache caching

+

Disabled htaccess and move rules to httpd.conf




http://smallvoid.com/article/winnt-tcpip-max-limit.html

____

Ab.exe -n 10000 -c 500 :: graphic

Requests per second: 2062.50 [#/sec] (mean)
Time per request: 242.424 [ms] (mean)
Time per request: 0.485 [ms] (mean, across all concurrent requests)

ab.exe 10000 -c 500 :: PHP
Requests per second: 468.04 [#/sec] (mean)
Time per request: 2192.584 [ms] (mean)
Time per request: 4.385 [ms] (mean, across all concurrent requests)
Transfer rate: 2057.05 [Kbytes/sec] received
Back to top


Reply to topic   Topic: Max concurrent connection for Apache as a module View previous topic :: View next topic
Post new topic   Forum Index -> Apache