Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does Tomcat distribute servlet/JSP processing to the 20+ Java processes it creates?

0
Posted

How does Tomcat distribute servlet/JSP processing to the 20+ Java processes it creates?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123