On Tue, Apr 17, 2012 at 5:12 AM, Markus Walther <email@example.com> wrote:
> I successfully installed openresty on my Macbook Air 11" (1.8 GHz
> Intel i7, 4 GB RAM, 256 GB SSD). This is the most highend version of
> that 2011 generation of Macbook Airs, so should be fine
> performance-wise IMHO. Running under MacOS X Lion, of course.
> No special parameters except making it find pcre (which I installed
> using MacPorts):
> sudo ./configure --with-luajit --with-ld-opt="-L/opt/local/lib"
> sudo make && make install
> Didn't see any errors during this.
> But the replication of the Benchmark is puzzling (using modified
> $ echo "http://127.0.0.1:8080/" | ~/perusio-httpload-de5a208/httpload
> -p 10 -s 5 /dev/stdin
> 16374 fetches, 10 max parallel, 327480 bytes, in 5.00007 seconds
> 20 mean bytes/connection
> 3274.75 fetches/sec, 65495.1 bytes/sec
> msecs/connect: 0.335235 mean, 348.065 max, 0.057 min
> msecs/first-response: 0.591975 mean, 348.155 max, 0.061 min
> HTTP response codes:
> code 200 -- 16374
> It slows down if I give it more seconds, and Apache's ab does not even
> complete all requests:
> $ ab -n 10000 -c 10 -t 1 http://127.0.0.1:8080/
> 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 127.0.0.1 (be patient)
> apr_socket_recv: Connection reset by peer (54)
> Total of 25 requests completed
> Any ideas?
I want to ask you a few questions:
1. What's your version of ngx_openresty?
2. And what does your nginx.conf look like?
3. Is there anything interesting in your error.log? Was it flushed by
a lot of messages?
Also, it's good to enable HTTP keepalive in your benchmarking tools
(for example, passing -k to your ab tool) so that it won't run out of
the dynamic port range in your Mac OS X system.
P.S. I've cc'd the openresty mailing list so that the whole team can
see it: https://groups.google.com/group/openresty