json - Apache2 in Freebsd Concurrent request cause Connection reset -


i trying move web server (php zendframework based) ubuntu freebsd. both servers having same hardware configuration. after migration, did jmeter test (http request (json), concurrent = 200) of server, "throughput" in freebsd server double of ubuntu server amazing.

however, when increase concurrent 500, see 50% request failure due "java.net.socketexception: connection reset". works normal in ubuntu server.

after many times testing, found ubuntu can handle 1500 concurrent httprequest without error, freebsd server can handle 200 concurrent request double speed without error, cannot handle more. in order verify result, tried ab command. **ab -c 200 -n 5000 127.0.0.1/responsecontroller. fails , terminate if ¬-c parameter on 200, works fine in ubuntu.

for debugging did following: 1. adjust httpd.conf, /boot/loader.conf, /etc/sysctl.conf somehow, looks nothing changed. 2. try switch mpn_worker_module in apache configuration , relevant configuration in php. nothing changed failure part log different, showed "request failure respond" rather "java.net.socketexception: connection reset"

i did lot of search couldn't find cause of failure. though json request waiting until response or timeout? not sure configuration file or parameter make work.

please help.

thanks michael zhilin, yes "ipfw" did caused this, , yes "kern.ipc.soacceptqueue" bottleneck in case.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -