tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Managing Tomcat Connections - Newbie
Date Mon, 12 Apr 2004 14:06:34 GMT

There's no way to manage connections from the command line, and you
probably don't want to do it anyways.  Consider:
- Using shorter session timeouts (change from the default 30 minutes to
3 for example),
- Redesigning your app so that a session doesn't have a one to one
correlation with a database connection.  That leads to horrible
scalability anyhow.  Use a connection pool.

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: David Langschied []
>Sent: Monday, April 12, 2004 10:02 AM
>Subject: Managing Tomcat Connections - Newbie
>Hi all!
>I am using Tomcat (4.1.24) through my app vendor.  I
>want to be able to manage my connections from the
>command line.  I have found some info on "ant" and
>being able to do things like start/stop/reload/etc.  I
>have not seen how this can be applied to managing
>Here is my problem in a nut shell:
>When Tomcat starts, I get a minimum number of
>connections, let's say this is 2 and a maximum of 20.
>What is happening is that Tomcat is opening new
>sessions each and every time that a new session is
>requested.  This number eventually reaches 20.
>At that point, I may have only two busy sessions and
>the remaining 18 are idle.  These idle sessions are
>considered as resources connected to my database.  I
>have top keep the number of resources down as low as
>possible.  These idle sessions need to be trimmed if
>they have been in an idle state for too long.
>Is there any way of doing this with Tomcat from the
>command line?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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:
For additional commands, e-mail:

View raw message