sampler icon indicating copy to clipboard operation
sampler copied to clipboard

warning 'fork/exec /bin/sh: too many open files'

Open lwx5924 opened this issue 5 years ago • 1 comments

The config file try to get CPU info from multiple server.

    sample: ssh <name>@<ip>   "ps --no-headers -A -o  %cpu  | awk '{ s+=\$1 } END {print s}'"

It's sometimes display ok, and some time there is warning display as below

SAMPLING FAILURE
fork/exec /bin/sh: too many open files

lwx5924 avatar Nov 05 '20 01:11 lwx5924

facing this issue too in a dashboard with 21 items that have been running for several hours on a raspberry pi

the sampling commands are all only using cat, sampling at the rate of 1000ms .. increasing ulimits -n to 15k does not help

kagesenshi avatar Aug 26 '21 23:08 kagesenshi