I have a problem with testing Apache server 2.4 by ab. The Apache server runs on Windows as a service and I test it from another server which is on Linux.
I write:
ab -n 1000 -c 1000 "http://x.x.x.x/image.jpg"
Output:
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking x.x.x.x (be patient)
apr_socket_recv: Connection refused (111)
When -n
and -c
are 100, there is no problem.
I had tested it previously and it had been all right, but all at once it began to crash.
I tried everything, even used mpm_winnt_module, but it didn't help.
(I use default values in Apache.)
I suppose that is not a network problem. I can see in Wireshark that communication is reseted after a while. According to me Apache is guilty.