Skip to content

Instantly share code, notes, and snippets.

@dpogorzelski
Last active August 29, 2015 14:04
Show Gist options
  • Save dpogorzelski/160cbee59d1afcc73589 to your computer and use it in GitHub Desktop.
Save dpogorzelski/160cbee59d1afcc73589 to your computer and use it in GitHub Desktop.
echo /var/vcap/sys/cores/core-%e-%s-%p-%t > /proc/sys/kernel/core_pattern
ulimit -c unlimited
ulimit -n 100000
echo 5 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse
echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
echo 1024 > /proc/sys/net/core/somaxconn
sysctl -w net.ipv4.neigh.default.gc_thresh3=4096
sysctl -w net.ipv4.neigh.default.gc_thresh2=2048
sysctl -w "kernel.shmmax=284934144"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment