自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

技巧:安裝linux后的內(nèi)核調(diào)優(yōu)

系統(tǒng) Linux
此技巧對于Squid,效果卻不大。此項參數(shù)可以控制TIME_WAIT套接字的最大數(shù)量,避免Squid服務器被大量的TIME_WAIT套接字拖死。

安裝linux后的內(nèi)核調(diào)優(yōu)

kernel.shmall = 268435456

net.ipv4.tcp_syncookies = 1

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_tw_recycle = 1

net.ipv4.tcp_fin_timeout = 30

net.ipv4.tcp_keepalive_time = 1200

net.ipv4.ip_local_port_range = 1024 65000

net.ipv4.tcp_max_tw_buckets = 5000

net.ipv4.tcp_max_tw_buckets = 5000

net.ipv4.tcp_fin_timeout = 30

net.ipv4.tcp_keepalive_time = 300

net.ipv4.tcp_syncookies = 1

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_tw_recycle = 1

net.ipv4.ip_local_port_range = 5000 65000

net.ipv4.tcp_mem = 786432 1048576 1572864

net.core.wmem_max = 873200

net.core.rmem_max = 873200

net.ipv4.tcp_wmem = 8192 436600 873200

net.ipv4.tcp_rmem = 32768 436600 873200

net.core.somaxconn = 256

net.core.netdev_max_backlog = 1000

net.ipv4.tcp_max_syn_backlog = 2048

net.ipv4.tcp_retries2 = 5

net.ipv4.tcp_keepalive_time = 500

net.ipv4.tcp_keepalive_intvl = 30

net.ipv4.tcp_keepalive_probes = 3

net.ipv4.conf.lo.arp_ignore = 0

net.ipv4.conf.lo.arp_announce = 0

net.ipv4.conf.all.arp_ignore = 0

net.ipv4.conf.all.arp_announce = 0

幾個解釋:

net.ipv4.tcp_syncookies = 1

#p#

#表示開啟SYN Cookies。當出現(xiàn)SYN等待隊列溢出時,啟用cookies來處理,可防范少量SYN攻擊,默認為0,表示關閉;

net.ipv4.tcp_tw_reuse = 1

#表示開啟重用。允許將TIME-WAIT sockets重新用于新的TCP連接,默認為0,表示關閉;

net.ipv4.tcp_tw_recycle = 1

#表示開啟TCP連接中TIME-WAIT sockets的快速回收,默認為0,表示關閉。

net.ipv4.tcp_fin_timeout = 30

#表示如果套接字由本端要求關閉,這個參數(shù)決定了它保持在FIN-WAIT-2狀態(tài)的時間。

net.ipv4.tcp_keepalive_time = 1200

#表示當keepalive起用的時候,TCP發(fā)送keepalive消息的頻度。缺省是2小時,改為20分鐘。

net.ipv4.ip_local_port_range = 1024 65000

#表示用于向外連接的端口范圍。缺省情況下很?。?2768到61000,改為1024到65000。

net.ipv4.tcp_max_tw_buckets = 5000

#表示系統(tǒng)同時保持TIME_WAIT套接字的最大數(shù)量,如果超過這個數(shù)字,

#TIME_WAIT套接字將立刻被清除并打印警告信息。默認為180000,改為5000。

#對于Apache、Nginx等服務器,上幾行的參數(shù)可以很好地減少TIME_WAIT套接字數(shù)量,

#但是對于Squid,效果卻不大。此項參數(shù)可以控制TIME_WAIT套接字的最大數(shù)量,避免Squid服務器被大量的TIME_WAIT套接字拖死。

【編輯推薦】

  1. Linux下反彈CmdLine Shell小技巧
  2. Linux下處理圖像的法寶GIMP的安裝
  3. Linux中防御垃圾郵件的方法
責任編輯:趙寧寧 來源: IT專家網(wǎng)
相關推薦

2022-01-27 23:32:03

Linux操作系統(tǒng)TCP

2011-03-18 11:21:48

2010-09-26 09:08:17

JVM調(diào)優(yōu)

2010-09-25 15:52:27

JVM內(nèi)存JVM

2013-08-27 13:44:14

MySQL調(diào)優(yōu)技巧

2025-01-17 09:23:31

2010-09-25 13:05:07

JVM參數(shù)

2023-02-07 08:00:00

MySQL數(shù)據(jù)庫技巧

2022-01-28 15:44:00

Linux服務器技巧

2022-11-30 08:17:41

JVM調(diào)優(yōu)技巧

2017-11-17 08:56:59

Java性能優(yōu)化技巧

2010-09-17 17:02:24

JVM參數(shù)

2011-03-10 14:40:54

LAMPMysql

2012-01-10 14:35:08

JavaJVM

2020-12-30 15:06:39

開發(fā)技能代碼

2017-12-08 11:28:58

MySQL性能調(diào)優(yōu)技巧

2024-11-11 08:11:39

2017-07-21 08:55:13

TomcatJVM容器

2013-03-20 17:30:18

2011-03-31 13:40:34

點贊
收藏

51CTO技術棧公眾號