用来查看apache 进程下最大文件打开数
#!/bin/bash for pid in `ps aux |grep httpd |grep -v grep |awk ‘{ print $2 }‘` do cat /proc/$(pid)/limits |grep ‘Max Openfiles‘ done
时间: 2024-10-13 14:16:01
用来查看apache 进程下最大文件打开数
#!/bin/bash for pid in `ps aux |grep httpd |grep -v grep |awk ‘{ print $2 }‘` do cat /proc/$(pid)/limits |grep ‘Max Openfiles‘ done