I did some load test under Ubuntu10.10 with Siege 2.6.9, script I used as follows,
siege -c 900 -r 30 -i -f urls.txt, but I got tons of error messages like
error: socket: unable to connect sock.c:222: Operation already in progress or socket timeout
I noticed most requests' response time are less than 0.2 secs, but after a while, some requests' response time increased to 5 secs, and a pause happened periodically,
So I did some linux kernel tuning jobs, e.g.
sysctl -w net.ipv4.tcp_tw_reuse=1 sysctl -w net.ipv4.tcp_timestamps=1 sysctl -w net.ipv4.tcp_tw_recycle=1
After that, the circumstance became better, but not good enough,
So could you guys could give me more infomation about socket/tcp parameters tuning on
linux kernel parameters, such as recycle/reuse/close the sockets in a TIME_WAIT state.
Any advices or suggestions would be highly appreciated. Many thanks.