Servlet execution characteristics

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Servlet execution characteristics

Post by jriemer » Fri Jul 15, 2011 4:55 pm

Where might I find information on the execution characteristics of Java servlets under z/OS Tomcat? I'm presuming that they are by default non-reentrant. If I invoke the same servlet in multiple browser sessions, this would logically imply a separate copy/instance of the servlet code for each session; is this the case? I notice a number of BPXPTATT tasks in the Tomcat address space. Are servlets routed to, and ATTACHed by, these tasks? Thanks.

dovetail
Site Admin
Posts: 1781
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Fri Jul 15, 2011 5:02 pm

z/OS Tomcat is just Tomcat - servlets run under multiple threads concurrently, depending on how you have configured the container. See the Apache Tomcat documentation for more information.

z/OS Java threads run in their own z/OS Unix thread, which is a z/OS TCB

jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Servlet execution characteristics

Post by jriemer » Fri Jul 15, 2011 8:01 pm

According to the Tomcat doc, multithreading is automatic. When I invoke my servlet simultaneously in two different browser windows, however, the second invocation does not begin processing until the first has completed, based on the output of diagnostic System.out.println's. I'm running Tomcat under JZOS. Would the apparent absence of multithreading be attributable to Tomcat, the JVM, the servlet itself (i.e. are certain declarations required), OMVS/UNIX threading/tasking; or some combination of the above? Thanks again.

jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Re: Servlet execution characteristics

Post by jriemer » Wed Jul 27, 2011 1:32 pm

Resolved.

dovetail
Site Admin
Posts: 1781
Joined: Thu Jul 29, 2004 12:12 pm

Re: Servlet execution characteristics

Post by dovetail » Tue Aug 02, 2011 9:38 am

What was the resolution?

Post Reply