Author |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Fri 07 Oct '11 20:52 Post subject: Max concurrent connection for Apache as a module |
|
|
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
|
Posted: Sat 08 Oct '11 2:43 Post subject: |
|
|
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
|
Posted: Sat 08 Oct '11 5:53 Post subject: |
|
|
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
|
|
Back to top |
|
elavarasan
Joined: 26 Sep 2011 Posts: 53
|
Posted: Sat 08 Oct '11 17:43 Post subject: |
|
|
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
|
Posted: Sat 08 Oct '11 19:54 Post subject: |
|
|
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 |
|