From fab0d4bdba30a4a37c2cc9d910bf9e9075c2afb3 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2019 12:43:23 -0700 Subject: 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 --- docs/high-performance-netdata.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3