Had an attack earlier sending several thousand requests. I've managed to lock the load at around 6 but strangely now my main website takes around 30 seconds to a minute to load a whilst the other on the server loads instant.
I've enabled it and now have all the following settings (and locks at around 250 requests instead of 2000);
strace
netstat
Connections attached although its compressed into a winzip file since its over 20kb.
I've enabled it and now have all the following settings (and locks at around 250 requests instead of 2000);
strace
Code:
root@domain [/home/domain]# strace -c /usr/local/lsws/fcgi-bin/lsphp5
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
83.51 0.000238 3 93 mmap
12.28 0.000035 0 104 39 open
4.21 0.000012 0 57 read
0.00 0.000000 0 50 close
0.00 0.000000 0 8 7 stat
0.00 0.000000 0 41 fstat
0.00 0.000000 0 12 lstat
0.00 0.000000 0 1 lseek
0.00 0.000000 0 39 mprotect
0.00 0.000000 0 11 munmap
0.00 0.000000 0 17 brk
0.00 0.000000 0 8 rt_sigaction
0.00 0.000000 0 1 rt_sigprocmask
0.00 0.000000 0 1 1 ioctl
0.00 0.000000 0 2 readv
0.00 0.000000 0 3 1 access
0.00 0.000000 0 85 1 select
0.00 0.000000 0 1 dup2
0.00 0.000000 0 1 socket
0.00 0.000000 0 1 connect
0.00 0.000000 0 1 sendmsg
0.00 0.000000 0 1 1 getpeername
0.00 0.000000 0 1 execve
0.00 0.000000 0 6 fcntl
0.00 0.000000 0 1 1 ftruncate
0.00 0.000000 0 1 getcwd
0.00 0.000000 0 16 unlink
0.00 0.000000 0 1 readlink
0.00 0.000000 0 1 getrlimit
0.00 0.000000 0 16 getuid
0.00 0.000000 0 85 getppid
0.00 0.000000 0 1 arch_prctl
0.00 0.000000 0 1 setrlimit
0.00 0.000000 0 3 futex
0.00 0.000000 0 1 set_tid_address
0.00 0.000000 0 1 set_robust_list
------ ----------- ----------- --------- --------- ----------------
100.00 0.000285 673 51 total
Code:
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(20, "O\r\0\0\3select t.forumid, t.threadi"..., 3411) = 3411
read(20, "\1\0\0\1\n:\0\0\2\3def\17domain_forums\1t\6"..., 16384) = 16384
read(20, "s - Works Perfectly\00234\7Lithium\0076"..., 16384) = 16384
read(20, "5804\0010\n1321884977\0011l\0\0w\003721\0067956"..., 16384) = 9317
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(20, "\20\0\0\0\2domain_forums", 20) = 20
read(20, "\7\0\0\1\0\0\0\2\0\0\0", 16384) = 11
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(20, "\177\0\0\0\3\nselect p.postid, t.threadi"..., 131) = 131
read(20, "\1\0\0\1\0046\0\0\2\3def\17domain_forums\1p\4"..., 16384) = 340
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(20, "\314\0\0\0\3\n\t\t\t\t\tUPDATE session\n\t\t\t\t\tS"..., 208) = 208
read(20, "0\0\0\1\0\1\0\2\0\0\0(Rows matched: 1 Cha"..., 16384) = 52
poll([{fd=20, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(20, "8\0\0\0\3\n\t\tINSERT INTO threadviews "..., 60) = 60
read(20, "\7\0\0\1\0\1\0\2\0\0\0", 16384) = 11
writev(19, [{"LS\3\0O\1\0\0\7\0\0\0\0\0\0\0\31\0b\0\27\0\20\0'\0\26\0R\0", 30}, {"X-Powered-By: PHP/5.2.17\0Set-Coo"..., 305}, {"LS\4\0\10@\0\0", 8}, {"<!DOCTYPE html PUBLIC \"-//W3C//D"..., 16384}, {"LS\4\0\10@\0\0", 8}, {"m/arcade/images/trophy.gif' alt="..., 16384}, {"LS\4\0\10@\0\0", 8}, {"der vbseo_like_postbit\" cellpadd"..., 16384}, {"LS\4\0O\f\0\0", 8}, {"/tr> <tr> <td class=\"thead\">Book"..., 3143}], 10) = 52662
chdir("/usr/local/lsws/fcgi-bin") = 0
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x32c50302d0}, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x32c50302d0}, 8) = 0
write(20, "\1\0\0\0\1", 5) = 5
shutdown(20, 2 /* send and receive */) = 0
close(20) = 0
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x32c50302d0}, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x32c50302d0}, 8) = 0
fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(3, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(4, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(4, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(5, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(5, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(7, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(7, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(8, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(8, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(9, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(9, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(10, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(10, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
open("/dev/urandom", O_RDONLY) = 20
read(20, "\v\"aC\370\177\242\273", 8) = 8
close(20) = 0
open("/dev/urandom", O_RDONLY) = 20
read(20, "\361O_\226?\331O\361", 8) = 8
close(20) = 0
open("/dev/urandom", O_RDONLY) = 20
read(20, "\307\34~T&\36a\10", 8) = 8
close(20) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
writev(19, [{"LS\5\0\10\0\0\0", 8}], 1) = 8
close(21) = 0
munmap(0x2b3a5c918000, 2154256) = 0
close(3) = 0
close(4) = 0
close(5) = 0
close(6) = 0
close(7) = 0
close(8) = 0
close(9) = 0
close(10) = 0
close(11) = 0
close(12) = 0
close(13) = 0
close(14) = 0
close(15) = 0
close(16) = 0
close(17) = 0
close(18) = 0
munmap(0x2b3a5cd3e000, 167772160) = 0
munmap(0x2b3a5c6fb000, 2214456) = 0
brk(0x9f29000) = 0x9f29000
exit_group(0) = ?
Code:
root@domain [/home/domain]# netstat -nt|awk '{print $5;}'|awk -F ':' '{print $1;}'|sort|uniq -c|sort -r|headnetstat -nt|grep ESTABLISHED|wc
274 1644 24386
Attachments
-
4.4 KB Views: 1
Last edited: