Re: Get tomcat to top accepting sessions?

2001-11-12 Thread James Chuang

Mike:

Seems like you can just have your servlet redirect requests that requires
starting of a new session.  It's a bit more expensive, but you can direct
them to a JSP page that has a nice error msg to come back in 15 minutes or
something

jchuang

- Original Message -
From: Mike Comb [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 12, 2001 11:53 AM
Subject: Get tomcat to top accepting sessions?


 Hi, is there any way to get tomcat to stop accepting new sessions, but
 allow active sessions to continue?  I am trying to figure out how to
 gracefully shutdown tomcat without kicking current users off.

 Thanks,
 -Mike

 ---
 Mike Comb
 Lead Engineer
 SoftCoin, Inc
 [EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Get tomcat to top accepting sessions?

2001-11-12 Thread Meyer, James

Mike,
Take a look at the following URL
http://mikal.org/interests/java/tomcat/archive/view?mesg=15194
Here you will find a patch by Michael Kuz.  I am currently using this patch
on Solaris 2.8/apache 1.3.19/tomcat 3.2.2.

The only problem that I have encountered, is that I have to restart every
apache just to take one machine out of service. To combat this annoyance I
crafted a simple menu shell script that uses ssh/sudo to restart all the
machines for me.

-James Meyer
Senior Unix Admin
Experian AIS

-Original Message-
From: Mike Comb [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 2:56 PM
To: Tomcat Users List
Cc: James Chuang
Subject: Re: Get tomcat to top accepting sessions?


Not quite what I am going for.  I have 6 instances of tomcat running 
accross two machines.  What I want to be able to do is take a couple of 
those instances down for servicing.  The way that I did that with my 
previous app server (ATG Dynamo) is tell the desired instances to stop 
accepting new sessions, wait half an hour for current users to go away, and 
then take down just those two instances.  Meanwhile the other four 
instances continue to serve the site.  This allowed me to easily do site 
updates, app server updates, etc without having to take down the site or 
wait for off-peek times.

So, any suggestions?

-Mike

--On Monday, November 12, 2001 12:31 PM -0800 James Chuang 
[EMAIL PROTECTED] wrote:

 Mike:

 Seems like you can just have your servlet redirect requests that requires
 starting of a new session.  It's a bit more expensive, but you can direct
 them to a JSP page that has a nice error msg to come back in 15 minutes or
 something

 jchuang

 - Original Message -
 From: Mike Comb [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 12, 2001 11:53 AM
 Subject: Get tomcat to top accepting sessions?


 Hi, is there any way to get tomcat to stop accepting new sessions, but
 allow active sessions to continue?  I am trying to figure out how to
 gracefully shutdown tomcat without kicking current users off.

 Thanks,
 -Mike

 ---
 Mike Comb
 Lead Engineer
 SoftCoin, Inc
 [EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



---
Mike Comb
Lead Engineer
SoftCoin, Inc
[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]