8 Replies Latest reply on Feb 18, 2016 7:03 AM by Miroslav Novak

    JBWEB000236: Servlet.service() for servlet sample threw exception: java.lang.OutOfMemoryError: unable to create new native thread

    safwan hijazi Newbie

      we have 2 JBOSS 6.4 servers, both has same configuration, same application, and same load

      the only difference is memory configuration  (standalone.conf)

       

      server1:

       

      JAVA_OPTS="-Xms4303m -Xmx4303m -XX:MaxPermSize=1024m -XX:+UseParallelGC -XX:ParallelGCThreads=4 -Djava.net.preferIPv4Stack=true"

       

      server2

      JAVA_OPTS="-Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"

       

      After we receive more than 200000 transactions for each server, we noticed that server1 has this exception

       

      JBWEB000236: Servlet.service() for servlet sample threw exception: java.lang.OutOfMemoryError: unable to create new native thread

       

      please your help, we increased memory and received OutOfMemoryError, It's strange