Whenever I use \'ab\' to benchmark a web server, it will freeze for a while after having sent lots of requests, only to continue after 20 seconds or so.
Another option to solve the issue is to enable HTTP KeepAlive by adding the "-k" option. This will make ab to re-use the TCP connections and as consequence it won't exhaust all ports available. For example: