What are some different ways/tools to verify that keep-alive is working on the server from the client's end?

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

You could try

ab -n 500 -c 5 -k http://www.domain.com/

and look via top, if 5 workers are constantly serving the requests keepalive should work (-k) switch. Do the same without -k and see the difference.

Cheers Izac

link|improve this answer
that's what i wound up doing, though i read that curl can tell you this too. if it says "Connection #0 to host www.example.com left intact", it means keep-alive is on. – Ron Garrity Aug 26 '11 at 20:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.