diff options
author | Nate <nate.tade@gmail.com> | 2019-09-16 12:43:23 -0700 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-09-16 21:43:23 +0200 |
commit | fab0d4bdba30a4a37c2cc9d910bf9e9075c2afb3 (patch) | |
tree | 69672e8a82d80fe46716a8da771c233e0b5c2062 | |
parent | c18b81601221181314297ae9dac040015470efdc (diff) |
update grep to be more specific (#6794)
* update grep to be more specific
when grepping for openfiles the netdata example is not exact enough and will return results from too many processes, just adding `.pid` to the grep _should_ pick up the correct process.
* Update high-performance-netdata.md
* Update high-performance-netdata.md
-rw-r--r-- | docs/high-performance-netdata.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/high-performance-netdata.md b/docs/high-performance-netdata.md index 3611fee383..3b33c03f13 100644 --- a/docs/high-performance-netdata.md +++ b/docs/high-performance-netdata.md @@ -126,7 +126,7 @@ You can check limits with following commands: ```sh cat /proc/$(ps aux | grep "nginx: master process" | grep -v grep | awk '{print $2}')/limits | grep "Max open files" -cat /proc/$(ps aux | grep "netdata" | head -n1 | grep -v grep | awk '{print $2}')/limits | grep "Max open files" +cat /proc/$(ps aux | grep "\/[n]etdata " | head -n1 | grep -v grep | awk '{print $2}')/limits | grep "Max open files" ``` View of the files: |