考虑到同学们对使用ab过程中可能会遇到各种问题,这里汇总下,便于大家查阅:

    其他问题,可以将异常贴到百度搜索一下。例如执行如下命令发生异常:

    1. ~ ab -c 50 -n 20000 http://localhost:8088/index/cats
    2. This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
    3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    4. Licensed to The Apache Software Foundation, http://www.apache.org/
    5. Benchmarking localhost (be patient)
    6. Completed 2000 requests
    7. Completed 4000 requests
    8. Completed 6000 requests
    9. Completed 8000 requests
    10. Completed 10000 requests
    11. Completed 12000 requests
    12. Completed 14000 requests
    13. Completed 16000 requests
    14. apr_socket_recv: Operation timed out (60)
    15. Total of 16416 requests completed

    就可以在百度中搜索 ab apr_socket_recv