Skip to content

Instantly share code, notes, and snippets.

@Jeraimee
Created June 27, 2012 02:35
Show Gist options
  • Save Jeraimee/3000974 to your computer and use it in GitHub Desktop.
Save Jeraimee/3000974 to your computer and use it in GitHub Desktop.
sysctl.conf
This sysctl.conf is used on a CentOS 6.2 system doing heavy tcp comms using ActiveMQ.
fs.file-max = 999999
net.core.netdev_max_backlog = 10240
net.core.somaxconn = 10240
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.ip_local_port_range = 1024 65535
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_max_orphans = 60000
net.ipv4.tcp_max_syn_backlog = 10240
net.ipv4.tcp_max_tw_buckets = 400000
net.ipv4.tcp_rmem = 4096 4096 16777216
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_wmem = 4096 4096 16777216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment