/usr/sbin/no -o tcp_timewait =1 /usr/sbin/no -o tcp_keepidle=600 /usr/sbin/no -o tcp_keepintvl=10 /usr/sbin/no -o tcp_keepinit=40
max_connections
value is increased.
The default value is 128.
max_connections
value,
run the following command: chdev -l sys0 -a maxuproc=new_value
A
new value of 1024 or 2048 (or higher) might be appropriate, depending
on how many processes and connections are configured.ndd -set /dev/tcp tcp_conn_request_max 8192 ndd -set /dev/tcp tcp_keepalive_interval 7200000 ndd -set /dev/tcp tcp_keepalives_kill 1
Kernel Parameter
|
Recommended Value
|
---|---|
swchunk
|
8192
|
shmseg
|
512
|
maxdsiz
|
3221225472
|
maxdsiz_64bit
|
64424509440
|
maxfiles_lim
|
10000
Note: Change this value before
changing maxfiles.
|
maxfiles
|
8192
|
semume
|
512
|
semmsl
|
3072
|
msgssz
|
512
Note: Change this value before
changing msgmax.
|
nkthread
|
10000
|
nproc
|
10240
Note: Change this value before
changing maxuprc.
|
maxuprc
|
4096
|
nflocks
|
11585
|
ninode
|
8110
|
msgmap
|
13109
|
msgseg
|
32767
Note: Change this value before
changing msgmax.
|
msgmnb
|
65535 (0x10000)
Note: Change this value before
changing msgmax.
|
msgmnb
|
131070
Note: Set when running multiple
JVMs on the same system.
|
msgmax
|
65535 (0x10000)
|
msgmax
|
131070
Note: Set when running multiple
JVMs on the same system.
|
msgmni
|
4634
|
semmns
|
11586
|
semmni
|
8192
|
semmnu
|
8180
|
shmmax
|
1.85514E+11
|
shmmni
|
8192
|
STRMSGSZ
|
65535
|
dbc_max_pc
|
10
|
nstrpty
|
60
|
cmc_plat_poll
|
15
|
msgtql
|
13107
|
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout echo 3000 > /proc/sys/net/core/netdev_max_backlog echo 3000 > /proc/sys/net/core/somaxconn echo 15 > /proc/sys/net/ipv4/tcp_keepalive_intvl echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes
/sbin/sysctl -w net.ipv4.tcp_fin_timeout=30 /sbin/sysctl -w net.core.netdev_max_backlog=3000 /sbin/sysctl -w net.core.somaxconn=3000 /sbin/sysctl -w net.ipv4.tcp_keepalive_intvl=15 /sbin/sysctl -w net.ipv4.tcp_keepalive_probes=5
/etc/security/limits.conf
file.
Add or change the values, based on the following information:
Domain
|
Type
|
Item
|
Recommended Value
|
---|---|---|---|
*
|
—
|
nproc
|
10240
|
*
|
—
|
stack
|
10240
|
*
|
—
|
nofile
|
20480
|
/etc/security/limits.d
directory.
The values specified in the files in this directory override the limits
specified in the limits.conf file. For example, some distributions
set an explicit soft limit for the nproc ulimit
value.
This is specified in the /etc/security/limits.d/90-nproc.conf
file.
In this file, change the nproc
value
to correspond to the value specified in the preceding table.
ndd -set /dev/tcp tcp_keepalive_interval 300000 ndd -set /dev/tcp tcp_time_wait_interval 60000 ndd -set /dev/tcp tcp_conn_req_max_q 256 ndd -set /dev/tcp tcp_conn_req_max_q0 2500 ndd -set /dev/tcp tcp_max_buf 4000000
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters
registry
subkey. Add the DWORD value with a name of TcpTimedWaitDelay and a
value of 30 (0xle).
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AFD\Parameters
registry
subkey. Add the following DWORD values:
Name
|
Recommended Value
|
---|---|
EnableDynamicBacklog
|
1 decimal
|
MinimumDynamicBacklog
|
20 decimal
|
MaximumDynamicBacklog
|
1000 decimal
|
DynamicBacklogGrowthDelta
|
10 decimal
|
netsh int ipvn set dynamicport tcp start=32768 num=32767 netsh int ipvn set dynamicport udp start=32768 num=32767where n indicates the version of your Internet protocol and is either 4 or 6.