我的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 閱讀(496) 評論(0)  編輯  收藏 所屬分類: linix

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

          導航

          統(tǒng)計

          常用鏈接

          留言簿(3)

          隨筆分類(144)

          隨筆檔案(157)

          相冊

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 和政县| 米易县| 宜昌市| 琼海市| 冀州市| 兴义市| 瑞丽市| 丁青县| 云林县| 河北区| 绥滨县| 突泉县| 石景山区| 应用必备| 永宁县| 云龙县| 石首市| 确山县| 济源市| 昌黎县| 忻城县| 通榆县| 大英县| 白城市| 郧西县| 岳普湖县| 金溪县| 正定县| 广德县| 射洪县| 麦盖提县| 安新县| 聊城市| 蕲春县| 措美县| 安顺市| 德庆县| 咸宁市| 灌南县| 南开区| 泸定县|