Hello, I'm new to web programming and it is unclear to me whether this is a servlet-container-specific question or a more general
Servlet design question.
Anyway, I'm building a web application in which, per usual, RPC are made to a servlet which creates a new
thread as a response. However, some of these "response" threads sometimes wait() for an interruption from other
java objects in threads that are on the server's JVM (the architecture of the entire project is crazy, but it's not my fault). I seem to have found, however, that using
Tomcat there is a limit to the number of such response threads I can have in existence on the server's JVM. The number (for my app at least) seems to be 6. I don't really know if there is a restriction on the number of total threads running on Tomcat's JVM or if there is a restriction on the number of servlet response threads that are allowed to exist per servlet. Could someone tell me about whatever restriction my web application keeps bashing against, and if there is a way to override it in Tomcat configuration xml files? I apologize if this is incredibly basic...I apologize even more if this is not a Tomcat-specific issue...but the help would be intensely appreciated.