ulimit与内核优化

ulimit

1
2
3
vim /etc/security/limits.d/90-nproc.conf

vim /etc/security/limits.conf

内核

1
vim /etc/sysctl.conf

查看句柄及PID

1
lsof -n|awk '{print $2}'|sort|uniq -c|sort -nr|more