Mac使用ab併發測試問題

2021-09-17 06:59:31 字數 1067 閱讀 6345

mac進行ab測試,遇到的問題集錦:

1、apr_socket_recv: connection reset by peer (54)

在mac上進行ab測試時,ab -c 200 -t 100發現會無法正確的返回。

錯誤資訊如下:

mac:~ air$ ab -n 10000 -c 2000 

this is apachebench, version 2.3 <$revision: 655654 $>

licensed to the apache software foundation,

benchmarking 127.0.0.1 (be patient)

apr_socket_recv: connection reset by peer (54)

這個報錯一般是由於使用的macosx預設自帶的ab限制了併發數導致的。

最後需要使用新安裝的httpd下的ab;

2、socket: too many open files (24)

一般這種報錯是由於macosx預設的open files數值過小導致的。使用ulimit -a檢視當前系統的預設檔案開啟數。

spring cloud 併發測試問題

併發測試,對外介面測試50個併發的時候開發報錯,報錯資訊類似如下 hystrix command default execution timeout enabled true isolation strategy thread semaphore maxconcurrentrequests thre...

Mac 使用ab效能測試工具

1.在mac中配置apache 啟動apache,開啟終端 sudo apachectl v如下顯示apache的版本 sudo apachectl start這樣apache就啟動了。開啟safari瀏覽器位址列輸入 http localhost 可以看到內容為 it works 的頁面 設定虛擬...

Mac 使用ab效能測試工具

1.在mac中配置apache 啟動apache,開啟終端 sudo apachectl v如下顯示apache的版本 sudo apachectl start這樣apache就啟動了。開啟safari瀏覽器位址列輸入 http localhost 可以看到內容為 it works 的頁面 設定虛擬...