You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ri...@apache.org on 2018/04/11 12:20:24 UTC

[1/2] brooklyn-docs git commit: Updates ulimit docs for Centos 7

Repository: brooklyn-docs
Updated Branches:
  refs/heads/master 2f2ed97c4 -> 1a9220250


Updates ulimit docs for Centos 7


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/3f1c06f5
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/3f1c06f5
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/3f1c06f5

Branch: refs/heads/master
Commit: 3f1c06f5e34fa943d6399c091a456a64a5306277
Parents: 2f2ed97
Author: Martin Harris <gi...@nakomis.com>
Authored: Fri Mar 23 12:23:54 2018 +0000
Committer: Martin Harris <gi...@nakomis.com>
Committed: Fri Mar 23 12:23:54 2018 +0000

----------------------------------------------------------------------
 .../increase-system-resource-limits.md          | 41 ++++++++++++++++++--
 1 file changed, 37 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/3f1c06f5/guide/ops/troubleshooting/increase-system-resource-limits.md
----------------------------------------------------------------------
diff --git a/guide/ops/troubleshooting/increase-system-resource-limits.md b/guide/ops/troubleshooting/increase-system-resource-limits.md
index 0cbf755..e11bf07 100644
--- a/guide/ops/troubleshooting/increase-system-resource-limits.md
+++ b/guide/ops/troubleshooting/increase-system-resource-limits.md
@@ -7,10 +7,7 @@ If you encounter the following error:
     Caused by: java.io.IOException: Too many open files
             at java.io.UnixFileSystem.createFileExclusively(Native Method)[:1.8.0
 
-Please check the limit for opened files `cat /proc/sys/fs/file-max` and increase it.
-You can increase the maximum limit of opened files by setting `fs.file-max` in `/etc/sysctl.conf`.
-and then running `sudo sysctl -p` to apply the changes.
-
+Please check and increase the limit for opened files.
 
 If you encounter the error below, e.g. when running with many entities, please consider **increasing the ulimit**:
 
@@ -19,6 +16,42 @@ If you encounter the error below, e.g. when running with many entities, please c
 On the VM running Apache Brooklyn, it is recommended that nproc and nofile are reasonably high 
 (e.g. 16384 or higher; a value of 1024 is often the default).
 
+## For Centos 7
+To check the current limits, you will need to know the PID for the brooklyn process. You can find
+this by running `systemctl status brooklyn` and checking the `Main PID` line.
+
+To see the current limits, run `cat /proc/<brooklyn PID>/limits` replacing <brooklyn PID> with the Main PID
+from above
+
+To override the default limits, you will need to create a `limits.conf` and populate it with the required
+values as follows:
+
+```
+mkdir -p /etc/systemd/system/brooklyn.service.d
+
+cat > /etc/systemd/system/brooklyn.service.d/limits.conf << EOF
+[Service]
+LimitNOFILE=16384
+LimitNPROC=16384
+EOF
+```
+
+You will then need to reload the systemctl daemon and restart brooklyn:
+
+```
+systemctl daemon-reload
+systemctl restart brooklyn
+```
+
+To check the new limits, you will need to obtain the new brooklyn PID by running `systemctl status brooklyn`
+and `cat`ing the process limits as above
+
+
+## For Centos 6
+Please check the limit for opened files `cat /proc/sys/fs/file-max` and increase it.
+You can increase the maximum limit of opened files by setting `fs.file-max` in `/etc/sysctl.conf`.
+and then running `sudo sysctl -p` to apply the changes.
+
 If you want to check the current limits run `ulimit -a`. Alternatively, if Brooklyn is run as a 
 different user (e.g. with user name "brooklyn"), then instead run `ulimit -a -u brooklyn`.
 


[2/2] brooklyn-docs git commit: Merge and close #249

Posted by ri...@apache.org.
Merge and close #249


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/1a922025
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/1a922025
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/1a922025

Branch: refs/heads/master
Commit: 1a9220250932d1d401968c1009c56d450b8f3969
Parents: 2f2ed97 3f1c06f
Author: Richard Downer <ri...@apache.org>
Authored: Wed Apr 11 13:19:58 2018 +0100
Committer: Richard Downer <ri...@apache.org>
Committed: Wed Apr 11 13:19:58 2018 +0100

----------------------------------------------------------------------
 .../increase-system-resource-limits.md          | 41 ++++++++++++++++++--
 1 file changed, 37 insertions(+), 4 deletions(-)
----------------------------------------------------------------------