How does Tomcat distribute servlet/JSP processing to the 20+ Java processes it creates?
Location: http://www.jguru.com/faq/view.jsp?EID=416234 Created: May 6, 2001 Author: Alessandro A. Garbagnati (http://www.jguru.com/guru/viewbio.jsp?EID=32727) Question originally posed by Daniel Yawitz (http://www.jguru.com/guru/viewbio.jsp?EID=241695 [How does Tomcat distribute servlet/JSP processing to the 20+ Java processes it creates? Is each client request serviced by a different Java process? If Tomcat received 100 simultaneous servlet requests, would it need to create 100 Java processes to handle them?] Theoretically yes, Tomcat will try to optimize the requests to handle as much simultaneous requests it can. [N.B.: Under Linux, each Java Thread appears in the process list (ps) as a separate process. This is because native Linux threads are implemented as lightweight processes. However, there is still only one Java process space — the memory/CPU reported by each thread is actually shared among all threads. -A] Yes, the number of threads can be controlled for each connector in t