1 Reply Latest reply on Mar 7, 2003 9:18 AM by jules

    WARNING: OUT OF THREADS

      Hi,

      I'm running JBoss 3.0.6 with Jetty. I have a load testing tool (Grinder) that is configured to have 10 threads sending requests to JBoss.

      I'm seeing the following warnings being written out ever couple of minutes:

      09:43:41,290 INFO [jbossweb] LOW ON THREADS: SocketListener@0.0.0.0:8080
      09:43:41,802 WARN [jbossweb] WARNING: OUT OF THREADS: SocketListener@0.0.0.0:8080

      I ran a stack trace and many of the PoolThread objects show the following:

      "PoolThread-34" prio=5 tid=0x951fa8 nid=0x3f waiting for monitor entry [0xea381000..0xea3819d8]
      at org.mortbay.http.NCSARequestLog.log(NCSARequestLog.java:357)
      at org.mortbay.http.HttpServer.log(HttpServer.java:805)
      at org.mortbay.http.HttpContext.log(HttpContext.java:2075)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:1025)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:776)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:202)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

      Has anybody seen this before?

        • 1. Re: WARNING: OUT OF THREADS

          Look in your .../deploy/jbossweb.sar/META-INF/jboss-service.xml

          see this ?





          10
          100
          30000
          5000





          Jetty is configured to start with a pool of 10 request threads, and allocate up to 100 to service requests. When you hit 100 a request has to wait for another to finish before it can reuse it's thread.

          It looks like your tool has backed up more than 100 requests. Give Jetty more threads and see what happens.

          Jules