Apache Trava

1. Apache Trava

Stefan Hororochovec
lordao

(usa Debian)

Enviado em 13/10/2008 - 14:56h

Ola pessoal, estou com um problema de apache travar durante um excessivo numero de conexoes.

Estou usando o httperf para testar, mas o ab obteve os mesmos resultados ou muito parecidos.

Segue abaixo o resultado do httperf.

[root@linuxfire bin]# httperf --server localhost --uri /Empresa/ajax/buscaClifor.php --num-conn 80 --num-call 10 --rate 2 --timeout 15 --port 82
httperf --timeout=15 --client=0/1 --server=localhost --port=82 --uri=/Empresa/ajax/buscaClifor.php --rate=2 --send-buffer=4096 --recv-buffer=16384 --num-conns=80 --num-calls=10
Maximum connect burst length: 1

Total: connections 80 requests 712 replies 700 test-duration 54.502 s

Connection rate: 1.5 conn/s (681.3 ms/conn, <=12 concurrent connections)
Connection time [ms]: min 8.6 avg 2258.3 max 15007.9 median 9.5 stddev 5387.2
Connection time [ms]: connect 0.0
Connection length [replies/conn]: 8.750

Request rate: 13.1 req/s (76.5 ms/req)
Request size [B]: 90.0

Reply rate [replies/s]: min 0.0 avg 14.0 max 20.0 stddev 9.2 (10 samples)
Reply time [ms]: response 1.0 transfer 0.0
Reply size [B]: header 164.0 content 0.0 footer 0.0 (total 164.0)
Reply status: 1xx=0 2xx=700 3xx=0 4xx=0 5xx=0

CPU time [s]: user 22.35 system 31.94 (user 41.0% system 58.6% total 99.6%)
Net I/O: 3.2 KB/s (0.0*10^6 bps)

Errors: total 12 client-timo 12 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0

Eu fiz o teste com mais de 800 requisicoes, se eu diminuir pra ate o maximo de 600, veja como retorna, mas antes do teste, tive que reiniciar o Apache.

[root@linuxfire bin]# httperf --server localhost --uri /Empresa/ajax/buscaClifor.php --num-conn 60 --num-call 10 --rate 2 --timeout 15 --port 82
httperf --timeout=15 --client=0/1 --server=localhost --port=82 --uri=/Empresa/ajax/buscaClifor.php --rate=2 --send-buffer=4096 --recv-buffer=16384 --num-conns=60 --num-calls=10
Maximum connect burst length: 1

Total: connections 60 requests 600 replies 600 test-duration 29.509 s

Connection rate: 2.0 conn/s (491.8 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 8.6 avg 9.5 max 19.1 median 8.5 stddev 1.7
Connection time [ms]: connect 0.0
Connection length [replies/conn]: 10.000

Request rate: 20.3 req/s (49.2 ms/req)
Request size [B]: 90.0

Reply rate [replies/s]: min 20.0 avg 20.0 max 20.0 stddev 0.0 (5 samples)
Reply time [ms]: response 0.9 transfer 0.0
Reply size [B]: header 164.0 content 0.0 footer 0.0 (total 164.0)
Reply status: 1xx=0 2xx=600 3xx=0 4xx=0 5xx=0

CPU time [s]: user 13.68 system 15.64 (user 46.4% system 53.0% total 99.3%)
Net I/O: 5.0 KB/s (0.0*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0


O Apache foi compilado com o modulo "prefork" tb, qualquer ajuda é bem vinda... não sei pq apartir de 600 requisicoes ele para. Não acredito que seja alguma coisa da máquina, vou postar o /proc/cpuinfo...

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz
stepping : 13
cpu MHz : 1200.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4805.18
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz
stepping : 13
cpu MHz : 1200.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
bogomips : 4800.09
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

[root@linuxfire bin]# cat /proc/meminfo
MemTotal: 1926732 kB
MemFree: 667080 kB
Buffers: 146340 kB
Cached: 892256 kB
SwapCached: 0 kB


O Linux é o RedHat Enterprise 4, Qualquer ajuda é bem vinda


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts