Univention Bugzilla – Attachment 9161 Details for
Bug 45309
Too many open files in UMC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
check-max-open-files.sh
check-max-open-files.sh (text/plain), 463 bytes, created by
Stefan Gohmann
on 2017-09-01 07:32 CEST
(
hide
)
Description:
check-max-open-files.sh
Filename:
MIME Type:
Creator:
Stefan Gohmann
Created:
2017-09-01 07:32 CEST
Size:
463 bytes
patch
obsolete
>#!/bin/bash > > >echo >echo -e "PID [PROCESS]\t$Soft limit\tHard limit\tOpen files" > >for pid in $(ps -A | awk '{print $1}'); do > test -e /proc/$pid/cmdline || continue > pcn=$(cat /proc/$pid/cmdline) > test -z "$pcn" && continue > soft=$(cat /proc/$pid/limits | grep 'Max open files' | awk '{print $4}') > hard=$(cat /proc/$pid/limits | grep 'Max open files' | awk '{print $5}') > openfiles=$(lsof -p $pid | wc -l) > > echo -e "$pid [$pcn]\t$soft\t$hard\t$openfiles" >done >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 45309
: 9161 |
9162