Re: Tomcat Connections And Memory Usage

2004-12-03 Thread David Boyer
To answer the first part of your question, you can configure the number
of request threads on a per-connector basis:
 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html

 [EMAIL PROTECTED] 12/3/2004 1:55:39 PM 

Apache Version: 2.0.47
Tomcat Version: 4.1.29
Connector: mod_jk
Server: SunOS 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-250

Does Tomcat have a configurable maximum number of simultaneous
connections 
(ala Apache's MaxClients property)?  If so, how/where is this value 
configured?
If not, is the connection limit determined by the front-end web server?
or 
by machine resource limits?
How do we determine how much memory Tomcat is using per connection?


--

David Rickard
Software Engineer

TechBooks/GTS
Your Single Source Solution!
Los Angeles CA * York, PA * Boston,MA * New Delhi, India
Visit us on the World Wide Web 
http://www.techbooks.comhttp://www.techbooks.com

[EMAIL PROTECTED]
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 (Fax)




RE: Tomcat Connections And Memory Usage

2004-12-03 Thread Shapira, Yoav

Hi,
You configure the number of request processing threads Tomcat allows.
Because the Servlet Specification mandates that one request be served by
one Servlet Container thread, this effectively controls the maximum
number of concurrent clients Tomcat can serve.  See the Connector
documentation reference page for details on these properties
(maxProcessors/maxThreads, maxSpareThreads, etc.)

Determining the amount of memory per connection is a difficult task, and
I say difficult only because I like to think nothing is impossible.
Tomcat certainly doesn't track this out of the box, you'd have to do
some coding.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: David Rickard [mailto:[EMAIL PROTECTED]
Sent: Friday, December 03, 2004 2:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Connections And Memory Usage

Apache Version: 2.0.47
Tomcat Version: 4.1.29
Connector: mod_jk
Server: SunOS 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-250

Does Tomcat have a configurable maximum number of simultaneous
connections
(ala Apache's MaxClients property)?  If so, how/where is this value
configured?
If not, is the connection limit determined by the front-end web server?
or
by machine resource limits?
How do we determine how much memory Tomcat is using per connection?


--

David Rickard
Software Engineer

TechBooks/GTS
Your Single Source Solution!
Los Angeles CA * York, PA * Boston,MA * New Delhi, India
Visit us on the World Wide Web
http://www.techbooks.comhttp://www.techbooks.com

[EMAIL PROTECTED]
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 (Fax)




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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