我的java天地

          linuxn性能調(diào)優(yōu)

          less /etc/sysctl.conf

          # Kernel sysctl configuration file for Red Hat Linux
          #
          # For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
          # sysctl.conf(5) for more details.

          # Controls IP packet forwarding
          net.ipv4.ip_forward = 0

          # Controls source route verification
          net.ipv4.conf.default.rp_filter = 1

          # Do not accept source routing
          net.ipv4.conf.default.accept_source_route = 0

          # Controls the System Request debugging functionality of the kernel
          kernel.sysrq = 0

          # Controls whether core dumps will append the PID to the core filename.
          # Useful for debugging multi-threaded applications.
          kernel.core_uses_pid = 1

          # Controls the use of TCP syncookies
          net.ipv4.tcp_syncookies = 1

          #Performance tunning
          net.ipv4.tcp_fin_timeout = 35
          net.ipv4.tcp_keepalive_time = 1800
          net.ipv4.tcp_keepalive_intvl = 35
          net.ipv4.ip_local_port_range = 1025 65535
          net.ipv4.tcp_max_syn_backlog = 8192
          net.core.netdev_max_backlog = 30000
          # increase TCP max buffer size settable using setsockopt()
          net.core.rmem_max = 16777216
          net.core.wmem_max = 16777216
          # increase Linux autotuning TCP buffer limit.
          net.ipv4.tcp_rmem = 4096 87380 16777216
          net.ipv4.tcp_wmem = 4096 65536 16777216
          net.ipv6.conf.all.disable_ipv6 = 1
          net.ipv6.conf.default.disable_ipv6 = 1

          # Disable netfilter on bridges.
          net.bridge.bridge-nf-call-ip6tables = 0
          net.bridge.bridge-nf-call-iptables = 0
          net.bridge.bridge-nf-call-arptables = 0

          # Controls the default maxmimum size of a mesage queue
          kernel.msgmnb = 65536

          # Controls the maximum size of a message, in bytes

          posted on 2013-03-01 15:44 tobyxiong 閱讀(504) 評論(0)  編輯  收藏 所屬分類: linix

          <2013年3月>
          242526272812
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿(3)

          隨筆分類(144)

          隨筆檔案(157)

          相冊

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 平凉市| 兴义市| 正蓝旗| 日照市| 汉寿县| 韩城市| 苍南县| 大荔县| 南京市| 崇明县| 中卫市| 宝坻区| 静乐县| 崇义县| 沂源县| 三门县| 大化| 西昌市| 上蔡县| 安庆市| 墨玉县| 乐业县| 神农架林区| 新津县| 长汀县| 东乡族自治县| 固始县| 新宾| 惠来县| 沁源县| 井冈山市| 和平区| 商丘市| 康定县| 武乡县| 天台县| 蕲春县| 青海省| 大同市| 正蓝旗| 姜堰市|