centos线程数查看

查看当前最大支持的线程数

bash 复制代码
cat /proc/sys/kernel/threads-max

当前用户进程可以创建的最大线程数(包括子进程)

bash 复制代码
[root@localhost tmp]# ulimit -u

得到当前实际的线程数

bash 复制代码
[root@localhost tmp]# ps -eLf | wc -l

统计每个进程的总线程数前20的数据

bash 复制代码
[root@localhost tmp]# ps -eLf | awk '{print $2}' | sort | uniq -c | sort -nr | head -n 20

相关推荐
哦你看看2 分钟前
Redis Sentinel哨兵集群
linux·redis·bootstrap·sentinel
忧郁的橙子.21 分钟前
二十、kubernetes 1.29 之 运维
运维·容器·kubernetes
pccai-vip1 小时前
架构论文《论负载均衡的设计与应用》
运维·架构·负载均衡
爱尔兰的楠小楠1 小时前
Windows上使用WSL2创建Ubuntu系统,实现无缝高效开发的体验
linux·windows·ubuntu
Fluency-111 小时前
ubuntu中ssh连接root用户
linux·ubuntu·ssh
0wioiw01 小时前
Ubuntu(③vsftpd)
linux·服务器·ubuntu
Dotrust东信创智2 小时前
从“手动试错”到“自动化闭环”:实车OTA测试的效率革命
运维·自动化
tritone2 小时前
在优豆云的免费云服务器上开启MongoDB学习之旅
服务器·学习·mongodb
我命由我123452 小时前
Guava - Guava 基本工具 Preconditions、Optional
java·服务器·开发语言·后端·java-ee·guava·后端框架
matrixlzp2 小时前
Jenkins 实战4:集群配置与分布式构建
运维·jenkins