sqshq / sampler

Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
https://sampler.dev
GNU General Public License v3.0
12.88k stars 572 forks source link

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

Open lwx5924 opened 4 years ago

lwx5924 commented 4 years ago

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
kagesenshi commented 3 years ago

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