From tomcat-dev-return-653-qmlist-jakarta-archive-tomcat-dev=jakarta.apache.org@jakarta.apache.org Wed Nov 07 18:45:08 2001 Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 23625 invoked from network); 7 Nov 2001 18:45:08 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 7 Nov 2001 18:45:08 -0000 Received: (qmail 24892 invoked from network); 7 Nov 2001 18:47:38 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 7 Nov 2001 18:47:38 -0000 Received: (qmail 15479 invoked by uid 97); 7 Nov 2001 18:44:56 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 15463 invoked by uid 97); 7 Nov 2001 18:44:55 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 15452 invoked from network); 7 Nov 2001 18:44:55 -0000 Message-ID: <005501c167b7$54acc750$5a66a8c0@wilshire.com> Reply-To: "Bill Barker" From: "Bill Barker" To: "Tomcat Developers List" References: <764CA2FF49EC054BA086FC8253A52DD7433845@merc09.na.sas.com> <017301c1662c$e19ef610$5a66a8c0@wilshire.com> <1005005680.3be72b70c5967@imp.binarix.com> <3BE91757.1090303@binarix.com> Subject: Re: TC 3.3, CVS: Tomcat shutdown Date: Wed, 7 Nov 2001 10:09:23 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-Archived: msg.XX8tuWMa@sneezy X-Filter-Version: 1.4.5 (sneezy) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You need two threads since one is always supposed to be listening, and the other does the actual shutting down. Since the shutdown thread tries to unblock the listening thread, it hangs if there isn't anyone listening. ----- Original Message ----- From: "Bojan Smojver" To: "Tomcat Developers List" Sent: Wednesday, November 07, 2001 3:13 AM Subject: Re: TC 3.3, CVS: Tomcat shutdown > This was the config that didn't work: > -------------------------------------------- > maxThreads="1" > maxSpareThreads="1" > minSpareThreads="1" > port="8007" > address="127.0.0.1"/> > -------------------------------------------- > > This is the configuration that also doesn't work: > -------------------------------------------- > maxThreads="1" > port="8007" > address="127.0.0.1"/> > -------------------------------------------- > > because after adjustLimits() in ThreadPool.java, it comes down to my > original configuration. > > This does work: > -------------------------------------------- > port="8007" > address="127.0.0.1"/> > -------------------------------------------- > > I'm not all that familiar with the threading code, but it seems as if > the first two should work since there is one thread available (for > shutdown only). And yet, they don't... > > This does work too: > -------------------------------------------- > maxThreads="2" > port="8007" > address="127.0.0.1"/> > -------------------------------------------- > > So, there has to be at least 2 threads to shut TC 3.3 down. Don't know > why, though. Any clues? > > Bojan > > Bojan Smojver wrote: > > > Quoting Bill Barker : > > > > > >>Works for me as well, but I use the default settings for > >>Ajp12Interceptor. > >> > > > > Aha, I have a few thingies there. I'll try to remove and recheck. > > > > > >>The only relevant recent change is that ThreadPool no longer ignores > >>your > >>server.xml settings. It's possible that we need to tweak the sanity > >>checks > >>in ThreadPool. > >> > > > > I did a few stupid things before, so maybe I need to do some luser sanity > > checking ;-) > > > > Once I find out what happens with default settings, I'll know more. I'm only > > using Ajp12 to shut the thing down. Ajp13 is handling all requests. I'm not > > really sure if new Ajp13 has shutdown support (I saw something along those lines > > in Ajp13.java, but never really tried to understand it), but if it does, I might > > just drop Ajp12. > > > > Bojan > > > > > >>----- Original Message ----- > >>From: "Larry Isaacs" > >>To: "'Tomcat Developers List'" > >>Sent: Monday, November 05, 2001 6:30 AM > >>Subject: RE: TC 3.3, CVS: Tomcat shutdown > >> > >> > >> > >>>I'm not seeing a problem on WinNT. > >>> > >>>Larry > >>> > >>> > >>>>-----Original Message----- > >>>>From: Bojan Smojver [mailto:bojan@binarix.com] > >>>>Sent: Monday, November 05, 2001 5:28 AM > >>>>To: Tomcat Dev List > >>>>Subject: TC 3.3, CVS: Tomcat shutdown > >>>> > >>>> > >>>>Anyone having problems with TC 3.3 shutdown in the latest CVS > >>>>snapshot? > >>>>It suddenly stopped working for me... > >>>> > >>>>Bojan > >>>> > >>>>-- > >>>>To unsubscribe, e-mail: > >>>> > >>>>For additional commands, e-mail: > >>>> > >>>> > >>>-- > >>>To unsubscribe, e-mail: > >>> > >> > >> > >>>For additional commands, e-mail: > >>> > >> > >> > >>> > >> > >>*----* > >> > >>This message is intended only for the use of the person(s) listed above > >> > >>as the intended recipient(s), and may contain information that is > >>PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, > >>you may not read, copy, or distribute this message or any attachment. > >> > >>If you received this communication in error, please notify us > >>immediately > >>by e-mail and then delete all copies of this message and any > >>attachments. > >> > >> > >>In addition you should be aware that ordinary (unencrypted) e-mail sent > >> > >>through the Internet is not secure. Do not send confidential or > >>sensitive > >>information, such as social security numbers, account numbers, personal > >> > >>identification numbers and passwords, to us via ordinary (unencrypted) > >> > >>e-mail. > >> > >>-- > >>To unsubscribe, e-mail: > >> > >>For additional commands, e-mail: > >> > >> > >> > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > *----* This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail. -- To unsubscribe, e-mail: For additional commands, e-mail: