HP UNIX
kcusage
kctune -v max_thread_proc
kctune -v maxfiles
kctune -v maxfiles_lim
kctune -v nkthread
kctune -v nproc
-------------------------------------------
ndd -get /dev/tcp tcp_time_wait_interval
ndd -get /dev/tcp tcp_conn_request_max
ndd -get /dev/tcp tcp_ip_abort_interval
ndd -get /dev/tcp tcp_keepalive_interval
参考建议值:
tcp_conn_req_max 4096
tcp_xmit_hiwater_def 1048576
tcp_ip_abort_interval 60000
tcp_rexmit_interval_initial 4000
tcp_keepalive_interval 900000
================================================================
linux 调整
kernel.msgmni
kernel.sem
fs.file-max
kernel.shmmax
net.ipv4.tcp_max_syn_backlog
参考建议值:
kernel.msgmni=1024
kernel.sem=1000 32000 32 512
fs.file-max=65535
kernel.shmmax=2147483648
net.ipv4.tcp_max_syn_backlog=8192
cat /etc/sysctl.conf
root 用户
sysctl -A > A.txt
cat A.txt | grep kernel.msgmni
cat A.txt | grep kernel.sem
cat A.txt | grep fs.file-max
cat A.txt | grep kernel.shmmax
cat A.txt | grep net.ipv4.tcp_max_syn_backlog
weblogic 用户
cat /proc/sys/kernel/msgmni
cat /proc/sys/kernel/sem
cat /proc/sys/fs/file-max
cat /proc/sys/kernel/shmmax
cat /proc/net/ipv4/tcp_max_syn_backlog
====================================================================
windows 参数调整
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
MaxUserPort = dword:00004e20 (用十进制表示为 20,000)
TcpTimedWaitDelay = dword:0000001e (用十进制表示为 30)
kcusage
kctune -v max_thread_proc
kctune -v maxfiles
kctune -v maxfiles_lim
kctune -v nkthread
kctune -v nproc
-------------------------------------------
ndd -get /dev/tcp tcp_time_wait_interval
ndd -get /dev/tcp tcp_conn_request_max
ndd -get /dev/tcp tcp_ip_abort_interval
ndd -get /dev/tcp tcp_keepalive_interval
参考建议值:
tcp_conn_req_max 4096
tcp_xmit_hiwater_def 1048576
tcp_ip_abort_interval 60000
tcp_rexmit_interval_initial 4000
tcp_keepalive_interval 900000
================================================================
linux 调整
kernel.msgmni
kernel.sem
fs.file-max
kernel.shmmax
net.ipv4.tcp_max_syn_backlog
参考建议值:
kernel.msgmni=1024
kernel.sem=1000 32000 32 512
fs.file-max=65535
kernel.shmmax=2147483648
net.ipv4.tcp_max_syn_backlog=8192
cat /etc/sysctl.conf
root 用户
sysctl -A > A.txt
cat A.txt | grep kernel.msgmni
cat A.txt | grep kernel.sem
cat A.txt | grep fs.file-max
cat A.txt | grep kernel.shmmax
cat A.txt | grep net.ipv4.tcp_max_syn_backlog
weblogic 用户
cat /proc/sys/kernel/msgmni
cat /proc/sys/kernel/sem
cat /proc/sys/fs/file-max
cat /proc/sys/kernel/shmmax
cat /proc/net/ipv4/tcp_max_syn_backlog
====================================================================
windows 参数调整
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
MaxUserPort = dword:00004e20 (用十进制表示为 20,000)
TcpTimedWaitDelay = dword:0000001e (用十进制表示为 30)