KB:Linux lsof - list open files


man: lsof - list open files
lsof -n | grep rundeck |wc -l
lsof -n | grep rundeck | grep deleted | wc -l
lsof -n | grep rundeck | grep deleted
lsof -p 21601 | wc -l
lsof -p 21601 | grep deleted | wc -l

#Find out proc limits
ps -aux|grep java
cat /proc/1208/limits

#ps -aux|grep java
root      5718  0.0  0.0 182020  2172 ?        S    May02   0:00 runuser -s /bin/bash -l rundeck -c java -Drundeck.jaaslogin=true            -Djava.security.auth.login.config=/etc/rundeck/jaas-ldap.conf            -Dloginmodule.name=ldap            -Drdeck.config=/etc/rundeck            -Drundeck.server.configDir=/etc/rundeck            -Dserver.datastore.path=/var/lib/rundeck/data/rundeck    
# cat /proc/5718/limits
Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             65535                65535                processes
Max open files            1024                 4096                 files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       256966               256966               signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us

run "ulimit" to see OS set limit if any..

Comments

Popular posts from this blog

KB: Azure ACA Container fails to start (no User Assigned or Delegated Managed Identity found for specified ClientId)

Electron Process Execution Failure with FSLogix

KB:RMM VS DEX (Remote Monitoring Management vs Digital Employee Experience)