2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

apr_socket_recvエラー

Last updated at Posted at 2018-06-09

OSXでabやsiegeなどのベンチマークテストで負荷の軽いテストを少し長めに続けると以下のエラーが出ることがあります。

Benchmarking 127.0.0.1 (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
apr_socket_recv: Operation timed out (60)

このエラーの原因は大量リクエストをさばくための空きポートが枯渇するためで、net.inet.tcp.mslという値を低くすれば解決できます。

sudo sysctl -w net.inet.tcp.msl=1000
net.inet.tcp.msl: 15000 -> 1000 

ソース

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?