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
Nate committed
Sep 16, 2019 at 12:43 UTC
fab0d4bdba30a4a37c2cc9d910bf9e9075c2afb3
1 file changed
+1
-1
docs/high-performance-netdata.md
+1
-1
@@ -126,7 +126,7 @@ You can check limits with following commands:
126
127
```sh
128
cat /proc/$(ps aux | grep "nginx: master process" | grep -v grep | awk '{print $2}')/limits | grep "Max open files"
129
-cat /proc/$(ps aux | grep "netdata" | head -n1 | grep -v grep | awk '{print $2}')/limits | grep "Max open files"
129
+cat /proc/$(ps aux | grep "\/[n]etdata " | head -n1 | grep -v grep | awk '{print $2}')/limits | grep "Max open files"
130
```
131
132
View of the files: