Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Oracle Linux-How to Check users percentage of open files, processes and pending signals
APPLIES TO:
Linux OS–Version Oracle Linux 7.0 to Oracle Linux 9.0 [Release OL7 to OL9]
Linux x86_64 on Oracle Public Cloud
Oracle Cloud Infrastracture
GOAL:
This document explains how to check current user's percentage of open files, processes and pending signals on Oracle Linux instances and will show if we reach the maximum.
SOLUTION:
This script will collect and show in percentage who much processes, open files and pending signals the current user is using:
Save the following into a file, such as userpercentage.sh:
paste <(grep 'open files\|processes\|pending signals' \
/proc/self/limits | cut -c27-38) \
<(i=`whoami`
lsof -n -u $i 2> /dev/null |
Tagged:
0