Re: Tomcat Performance question

2002-07-08 Thread Henner Zeller


Hi Sean,

 My problem is that my sys admin person who needs to deploy this system 
 on a production box is concerned that Tomcat cannot be performant enough 
 to satisfy the high volume of requests on the server.  He is convinced 
 that Tomcat is loaded every time anyone accesses the html, even if they 
 do not access the servlets themselves.

No, tomcat is already started. The tomcat process is running, waiting for 
requests. Each requests is passed to an already spawned and waiting 
thread. So handling a request is pretty fast. Tomcat behaves like a normal 
webserver in this regard: started and waiting for requests.
Even the servlets inside Tomcat are started once at startup and then 
are reused on every request in a separate thread.

HTML-serving is just another servlet in tomcat, that just reads a file and 
passes it to the servlet output stream.

I assume your admin compares tomcat to CGI-programs. CGI-progams (mostly 
written in Perl, thus often referred to as CGI-script) are started every 
time a request goes to them; this indeed is not good for performance, 
especially for scripts that need to start-up a huge interpreter that needs 
to parse its script first.

 One more point.  These servlets must be in a secure environment.  They 
 use a Thawte certificate for security.  I thought Tomcat could be 
 configured to use a secure certificate fairly simply, but he says 
 otherwise.

Yes. Anyway I'd suggest to always use Apache as the frontend (handling 
as well the SSL stuff) and then connect tomcat with AJP12/13 to the 
apache.

ciao,
 -hen


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: Tomcat Performance question

2002-07-08 Thread Power-Netz \(Schwarz\)

 One more point.  These servlets must be in a secure environment.  They
  use a Thawte certificate for security.  I thought Tomcat could be
  configured to use a secure certificate fairly simply, but he says
  otherwise.

Thawte certs can be used with tomcat, just the installation of the cert is
a bit problematic -- http://www.comu.de/docs/tomcat_ssl.htm

 Yes. Anyway I'd suggest to always use Apache as the frontend (handling
 as well the SSL stuff) and then connect tomcat with AJP12/13 to the
 apache.

Maybe I did something wrong with mod_jk but,
since I split Apache from Tomcat again, we got a huge performance increase
on
the tomcat side. Now Apache handles http and Tomcat handles https.
Since our webapp needs secure auth anyway, we use tomcat for the whole
process.
IMHO, noone will run into trouble if he/she uses tomcat without apache.

The only problem i can see is, that tomcat 3.3.x is unable to use different
sslcerts for different vhosts.
Can anyone pls verify this? Or better not ;-))





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]