You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by bostko <gi...@git.apache.org> on 2015/11/10 14:59:43 UTC

[GitHub] incubator-brooklyn pull request: Add documentation for the "unable...

GitHub user bostko opened a pull request:

    https://github.com/apache/incubator-brooklyn/pull/1015

    Add documentation for the "unable to create new native thread" problem

    Added a Problems section in faq.md describing how to increase ulimit.
    
    @rdowner please advice whether this is a good place for `increasing ulimit'.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bostko/incubator-brooklyn documentation

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-brooklyn/pull/1015.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1015
    
----
commit 878592a18d9cff51c02060605485632841a2ae15
Author: Valentin Aitken <va...@cloudsoftcorp.com>
Date:   2015-11-10T13:50:45Z

    Add `Common problems' in the documentation

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-brooklyn pull request: Add documentation for the "unable...

Posted by ygy <gi...@git.apache.org>.
Github user ygy commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1015#discussion_r44409393
  
    --- Diff: docs/website/documentation/faq.md ---
    @@ -20,3 +20,29 @@ Supplying the answers are a TODO.
     ## How do I supply answers?
     
     Click the "Edit this Page" link in the bottom right.
    +
    +
    +# Common Problems:
    +
    +## java.lang.OutOfMemoryError: unable to create new native thread
    +
    +You could encounter this error when running with many entities.
    +
    +Please **increase the ulimit** if you see such error:
    +
    +On the VM running Apache Brooklyn, we recommend ensuring nproc and nofile are reasonably high (e.g. higher than 1024, which is often the default).
    +
    +Run `ulimit -a` to see the current limits.
    +
    +To increase the limits, run `sudo vi /etc/security/limits.conf` and add (if it is "brooklyn" user running Apache Brooklyn):
    +
    +    brooklyn           soft    nproc           16384
    +    brooklyn           hard    nproc           16384
    +    brooklyn           soft    nofile          16384
    +    brooklyn           hard    nofile          16384
    +
    +Then apply these changes by running `sudo sysctl -p`.
    --- End diff --
    
    limits.conf is only read during login shells.
    
    `sysctl -p` only enforces re-read of /etc/sysctl.conf


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-brooklyn pull request: Add documentation for the "unable...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-brooklyn/pull/1015


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-brooklyn pull request: Add documentation for the "unable...

Posted by ygy <gi...@git.apache.org>.
Github user ygy commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1015#discussion_r44409172
  
    --- Diff: docs/website/documentation/faq.md ---
    @@ -20,3 +20,29 @@ Supplying the answers are a TODO.
     ## How do I supply answers?
     
     Click the "Edit this Page" link in the bottom right.
    +
    +
    +# Common Problems:
    +
    +## java.lang.OutOfMemoryError: unable to create new native thread
    +
    +You could encounter this error when running with many entities.
    +
    +Please **increase the ulimit** if you see such error:
    +
    +On the VM running Apache Brooklyn, we recommend ensuring nproc and nofile are reasonably high (e.g. higher than 1024, which is often the default).
    +
    +Run `ulimit -a` to see the current limits.
    +
    --- End diff --
    
    The correct setup for limits.conf is distribution specific. Maybe, it is better to point out only the recommended values without suggesting changing OS files and ask the user to consult distro's documentation.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-brooklyn pull request: Add documentation for the "unable...

Posted by ahgittin <gi...@git.apache.org>.
Github user ahgittin commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1015#issuecomment-157311967
  
    @bostko you have good comments from @ygy and @neykov.  it is useful to give os-specific commands but you should say what distro it is for.  i'd like to update and close this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-brooklyn pull request: Add documentation for the "unable...

Posted by neykov <gi...@git.apache.org>.
Github user neykov commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1015#discussion_r44408975
  
    --- Diff: docs/website/documentation/faq.md ---
    @@ -20,3 +20,29 @@ Supplying the answers are a TODO.
     ## How do I supply answers?
     
     Click the "Edit this Page" link in the bottom right.
    +
    +
    +# Common Problems:
    +
    +## java.lang.OutOfMemoryError: unable to create new native thread
    +
    +You could encounter this error when running with many entities.
    +
    +Please **increase the ulimit** if you see such error:
    +
    +On the VM running Apache Brooklyn, we recommend ensuring nproc and nofile are reasonably high (e.g. higher than 1024, which is often the default).
    +
    +Run `ulimit -a` to see the current limits.
    +
    +To increase the limits, run `sudo vi /etc/security/limits.conf` and add (if it is "brooklyn" user running Apache Brooklyn):
    +
    +    brooklyn           soft    nproc           16384
    +    brooklyn           hard    nproc           16384
    +    brooklyn           soft    nofile          16384
    +    brooklyn           hard    nofile          16384
    +
    +Then apply these changes by running `sudo sysctl -p`.
    +
    +Finally quit the ssh session, and log back in.
    --- End diff --
    
    This looks like a distro specific config? Point out which distro it applies to.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-brooklyn pull request: Add documentation for the "unable...

Posted by aledsage <gi...@git.apache.org>.
Github user aledsage commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1015#issuecomment-157342841
  
    Thanks @bostko - merging.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---