Welcome 微信登录

首页 / 操作系统 / Linux / 初装Linux网络优化

Linux系统初装后TCP memory默认参数配置为128K,在过多进程负载网络通信的情况下就会出现异常。可以使用命令扩大使用内存:
#sysctl -w net.core.rmem_max=16777216
#sysctl -w net.core.wmem_max=16777216
##修改为16M最好同时修改 /etc/sysctl.conf文件,保证系统正常运行:# These ensure that TIME_WAIT ports either get reused or closed fast.
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_tw_recycle = 1
# TCP memory
net.core.rmem_max = 16777216
net.core.rmem_default = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 262144Linux下硬盘IDE接口和盘阵区分Linux find 命令 一个神奇之处相关资讯      Linux入门教程 
  • Linux入门教程:/var/spool/  (02月01日)
  • Linux入门教程:如何使用终端安装   (09/16/2015 19:26:13)
  • Linux入门教程:Ubuntu笔记本屏幕  (03/16/2015 21:39:15)
  • Linux操作系统入门教程 PDF  (12/20/2015 15:38:25)
  • Linux操作系统入门教程  (07/31/2015 06:59:53)
  • Linux入门教程:如何检查Linux系统  (09/12/2014 11:57:54)
本文评论 查看全部评论 (0)
表情: 姓名: 字数