Permalink
Browse files

benchmark: Set port range properly on Linux

  • Loading branch information...
1 parent e11668b commit ecdde7df15f534094b749c8febbf56972fd13795 @isaacs isaacs committed Dec 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 benchmark/http.sh
View
@@ -3,6 +3,7 @@ cd "$(dirname "$(dirname $0)")"
if type sysctl &>/dev/null; then
# darwin and linux
+ sudo sysctl -w net.ipv4.ip_local_port_range="12000 65535"
sudo sysctl -w net.inet.ip.portrange.first=12000
sudo sysctl -w net.inet.tcp.msl=1000
sudo sysctl -w kern.maxfiles=1000000 kern.maxfilesperproc=1000000

0 comments on commit ecdde7d

Please sign in to comment.