Re: Tomcat 6.0 queries

2012-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 10/13/12 3:17 PM, Mark Eggers wrote:
 JMX is probably your best bet here. This has been discussed
 several times on the mailing list. You also might find the
 following useful:
 
 https://code.google.com/p/psi-probe/

Also http://wiki.apache.org/tomcat/FAQ/Monitoring

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlB8IJIACgkQ9CaO5/Lv0PAAUgCfc0J9OauOTHIabKvC63Tqzusr
DggAn063kjsXpYd/EitCQpEbNQjVBqu3
=qmmv
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6.0 queries

2012-10-14 Thread vivek aggarwal
Thanks Mark for responding.. great piece of info.. Thanks again
 
vicky
 


 From: Mark Eggers its_toas...@yahoo.com
To: users@tomcat.apache.org 
Sent: Sunday, 14 October 2012 12:47 AM
Subject: Re: Tomcat 6.0 queries
  
On 10/13/2012 3:42 AM, vivek aggarwal wrote:
 Hello All,
 
 Can you guys please help in understanding my following concerns/queries :-
 
 1.  How can we configure the number of threads for managing simultaenous
 HTTP connection requests coming from Apache. Is there any connection time out 
 value
 we have at the tomcat side which we can configure ?

There is a lot of documentation. I'm going to make a few assumptions here. If 
they are not right, then my comments will not make a lot of sense.

I'm assuming that you're fronting one or more Tomcat servers with Apache HTTPD. 
I'm also assuming that you're using the AJP connector (mod_jk).

Managing the number of connections is done in server.xml when you configure the 
Connector. See the maxThreads attribute. There is an additional backlog 
attribute as well. So the total number of simultaneous connections would be 
maxThreads + backlog, with only maxThreads being serviced.

There is another way of managing the total number of threads with an Executor 
thread pool. I've not discussed that here.

Timeout values are in two places. There are two values in server.xml which 
govern how long a connection waits for a URI once it's open (connectionTimeout) 
and how long to wait for another request (keepAliveTimeout). Both are infinite 
by default.

You'll want those values to be in sync with your AJP configuration (normally 
found in workers.properties). In particular, pay attention to 
connection_pool_timeout.

Note that the connection_pool_timeout value is in seconds, while the 
keepAliveTimeout is in milliseconds.

Recent source versions of mod_jk have a very good example in the conf 
subdirectory of the distribution.

For more information, I suggest that you read:

http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html
http://tomcat.apache.org/connectors-doc/reference/workers.html

 2. In tomcat how to check the number of  requests served at a particular
 moment or  the number of open connnections from tomcat side?/
 

JMX is probably your best bet here. This has been discussed several times on 
the mailing list. You also might find the following useful:

https://code.google.com/p/psi-probe/

 3.  for the ongoing connection request how does the tomcat manage the
 user sessions ,,, any configuration for the same do we have which we can tune 
 ??
 

Read the servlet specification. In particular, pay attention to the 
session-config and session-timeout elements in web.xml.

 Thanks for your help in advance,
 
 Vicky
 

. . . . just my two cents.
/mde/

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 6.0 queries

2012-10-13 Thread Jose María Zaragoza
2012/10/13 vivek aggarwal vicky007aggar...@yahoo.co.in:
 Hello All,

 Can you guys please help in understanding my following concerns/queries :-

 1.  How can we configure the number of threads for managing simultaenous HTTP 
 connection requests coming from Apache. Is there any connection time out value
 we have at the tomcat side which we can configure ?

Well, maybe I'm wrong but I think there isn't HTTP connection
requests, but TCP connection requests.

You can have a look at
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html (Standard
Implementation)
Look at 'maxThreads' ,'connectionTimeout' and 'acceptCount', IMHO


Q2  Q3  I'm not sure how to answer them, sorry

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6.0 queries

2012-10-13 Thread Mark Eggers

On 10/13/2012 3:42 AM, vivek aggarwal wrote:

Hello All,

Can you guys please help in understanding my following concerns/queries :-

1.  How can we configure the number of threads for managing simultaenous
 HTTP connection requests coming from Apache. Is there any connection 
time out value

we have at the tomcat side which we can configure ?


There is a lot of documentation. I'm going to make a few assumptions 
here. If they are not right, then my comments will not make a lot of sense.


I'm assuming that you're fronting one or more Tomcat servers with Apache 
HTTPD. I'm also assuming that you're using the AJP connector (mod_jk).


Managing the number of connections is done in server.xml when you 
configure the Connector. See the maxThreads attribute. There is an 
additional backlog attribute as well. So the total number of 
simultaneous connections would be maxThreads + backlog, with only 
maxThreads being serviced.


There is another way of managing the total number of threads with an 
Executor thread pool. I've not discussed that here.


Timeout values are in two places. There are two values in server.xml 
which govern how long a connection waits for a URI once it's open 
(connectionTimeout) and how long to wait for another request 
(keepAliveTimeout). Both are infinite by default.


You'll want those values to be in sync with your AJP configuration 
(normally found in workers.properties). In particular, pay attention to 
connection_pool_timeout.


Note that the connection_pool_timeout value is in seconds, while the 
keepAliveTimeout is in milliseconds.


Recent source versions of mod_jk have a very good example in the conf 
subdirectory of the distribution.


For more information, I suggest that you read:

http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html
http://tomcat.apache.org/connectors-doc/reference/workers.html


2. In tomcat how to check the number of  requests served at a particular
moment or  the number of open connnections from tomcat side?/



JMX is probably your best bet here. This has been discussed several 
times on the mailing list. You also might find the following useful:


https://code.google.com/p/psi-probe/


3.  for the ongoing connection request how does the tomcat manage the
user sessions ,,, any configuration for the same do we have which we can tune ??



Read the servlet specification. In particular, pay attention to the 
session-config and session-timeout elements in web.xml.



Thanks for your help in advance,

Vicky



. . . . just my two cents.
/mde/

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org