1 Reply Latest reply on Dec 1, 2008 8:57 AM by Nick Belaevski

    Richfaces build java.lang.OutOfMemoryError: unable to create

    Sam Elstob Newbie

      Hi all

      A heads up on building RichFaces on some Linux systems.

      I was getting the following error when building

      java.lang.OutOfMemoryError: unable to create new native thread

      in some of the JUnit tests e.g.


      This is NOT an out of memory error. The test case above creates 1000 threads and in my Fedora 9 system the per user thread limit is 1024 by default.

      simply change the limit before running the build and all is well

      ulimit -u 2048
      mvn install