Server load is high when i pres 100times f5 key on a site.

webbyo

Verified User
Joined
Oct 11, 2011
Messages
9
I have a problem when i hit 100times f5 key on my website. Load is extremly high and server isn't reachable for other users for a long time..

Below some information/specs:
When i visit the site made in cakephp, mysql did 69 queries took 4 ms.

I have a VPS, with debian 6 installed 64bit
Code:
VPS has:
4096 MB ram, 
100 GB diskspace
4 CPU Cores
Intel X5650, 2.67Ghz processor

I installed directadmin custom build: Apache/2.2.21 & PHP 5.2.17 (cli)

top command give me this when server is stable:
Code:
top - 09:19:27 up 48 min,  1 user,  load average: 0.00, 0.02, 0.09
Tasks: 155 total,   1 running, 154 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3%us,  0.6%sy,  0.0%ni, 99.1%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   4061528k total,   531684k used,  3529844k free,    13388k buffers
Swap:  4290552k total,        0k used,  4290552k free,   159524k cached

I have 1 website running now on this server, visitors under 100/day

When i press f5 key on my site 100times top command give me this:
Code:
top - 09:34:58 up  1:03,  1 user,  load average: [B]49.08[/B], 13.48, 4.61
Tasks: 249 total,  86 running, 163 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.6%us, 97.3%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:   4061528k total,  1115364k used,  2946164k free,    15080k buffers
Swap:  4290552k total,        0k used,  4290552k free,   159792k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3505 apache    20   0  106m  10m 2852 R    6  0.3   0:02.13 httpd
 3520 apache    20   0  106m  10m 2852 R    6  0.3   0:02.07 httpd
 3522 apache    20   0  106m  10m 2848 R    6  0.3   0:02.01 httpd
 3440 apache    20   0  116m  21m 3344 R    5  0.5   0:03.30 httpd
 3445 apache    20   0  115m  19m 3352 R    5  0.5   0:02.92 httpd
 3451 apache    20   0  111m  16m 3304 R    5  0.4   0:02.65 httpd
 3456 apache    20   0  111m  16m 3304 R    5  0.4   0:02.67 httpd
 3467 apache    20   0  107m  11m 2856 R    5  0.3   0:02.45 httpd
 3478 apache    20   0  106m  10m 2852 R    5  0.3   0:02.36 httpd
 3479 apache    20   0  106m  10m 2852 R    5  0.3   0:02.32 httpd
 3481 apache    20   0  106m  10m 2852 R    5  0.3   0:02.24 httpd
 3482 apache    20   0  106m  10m 2852 R    5  0.3   0:02.35 httpd
....... allot more...
What causes the server to have so much load? And what can I do about it?
 
What is the f5 key supposed to do? Would this be normal behavior, or are you testing for a DOS attack situation?

Jeff
 
Back
Top