1 Reply Latest reply on Jun 7, 2007 9:24 AM by rantanohneplan

    JBoss (Tomcat) blocks connections

    rantanohneplan

      Hi!

      I'm just working on AJAX and made a little test-project for myself. The project contains three servlets.

      First Servlet contains just the JavaScript to create HttpRequests and write the response into a div-container.
      Second Servlet contains the text which is the response of the HttpRequest.
      Third Servlet contains a Textfield and a Button to change the text on second servlet.

      Everything works fine but when I opened a few browser windows to test the performance i realized that my tomcat doesn't allow more than eight browser windows. I implemented a System.out.println at the beginning of the doGet-method of first servlet. The result is that I could see that my tomcat isn't able to call the doGet-method of the ninth browser window. But the config allows 250 threads, i think. So, what could be wrong? Any ideas?

      Greetings,
      Rantan

        • 1. Re: JBoss (Tomcat) blocks connections
          rantanohneplan

          Second Servlet contains on top of that some code that makes the requests stop and wait for a change. So every browser window creates a request that waites for a change on second servlet...just solved this with wait(). On changing the content with third servlet I call notifyAll() for every request.