Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 57348 invoked from network); 24 Feb 2006 15:24:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 15:24:23 -0000 Received: (qmail 53645 invoked by uid 500); 24 Feb 2006 15:24:09 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53632 invoked by uid 500); 24 Feb 2006 15:24:08 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 53621 invoked by uid 99); 24 Feb 2006 15:24:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 07:24:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of joey@staff.onmilwaukee.com designates 66.162.233.135 as permitted sender) Received: from [66.162.233.135] (HELO mail.onmilwaukee.com) (66.162.233.135) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 07:24:07 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.onmilwaukee.com (Postfix) with ESMTP id 9F82133EBCC for ; Fri, 24 Feb 2006 09:34:20 -0600 (CST) Received: from mail.onmilwaukee.com ([127.0.0.1]) by localhost (mail.onmilwaukee.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26260-01 for ; Fri, 24 Feb 2006 09:34:18 -0600 (CST) Received: from [127.0.0.1] (rrcs-67-53-233-106.west.biz.rr.com [67.53.233.106]) by mail.onmilwaukee.com (Postfix) with ESMTP id 3626D33EBC3 for ; Fri, 24 Feb 2006 09:34:18 -0600 (CST) Message-ID: <43FF2500.9000901@staff.onmilwaukee.com> Date: Fri, 24 Feb 2006 09:23:44 -0600 From: Joey Geiger User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Issue with ajp13 socket after tomcat shutdown Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at onmilwaukee.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N After I manually shutdown tomcat (shutdown.sh) the ajp socket seems to stay open for an extended period of time. If I attempt to restart, I get the following output in catalina.out. The problem is that ajp13 should be listening on 8889, but this port is never released, and for some odd reason, it decides to move up one. If I shutdown again, it will switch the port to 8891. I noticed another thread in the archives that discussed a similar problem, but the solution was for the apr connector. The ports do release after a waiting period, but this isn't helpful during development, and I think it might also be the cause of a few errors with tomcat restarting on it's own. (The site seems unavailable but it's just not listening on the correct port) Any help is appreciated. Thank you. >>Subject: RE: Re: Re: APR Connector Shutdown Problem >>From: "Fenlason, Josh" >>Date: 2006-01-31 22:45:57 >>... >>I added the following line to >>tomcat-native.1.1.1/jni/native/src/network.c (added at line 388): >>apr_socket_opt_set( s, APR_SO_REUSEADDR, 1 ); >>But I'm still running into the same problem. Feb 24, 2006 9:29:02 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Portable Runtime which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.5.0_05/jre/lib/i386/server:/usr/local/jdk1.5.0_05/jre/lib/i386:/usr/local/jdk1.5.0_05/jre/../lib/i386 Feb 24, 2006 9:29:03 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1190 ms Feb 24, 2006 9:29:03 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 24, 2006 9:29:03 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.12 Feb 24, 2006 9:29:03 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool@1db9f45) LogAbandoned: false RemoveAbandoned: true RemoveAbandonedTimeout: 300 Feb 24, 2006 9:29:30 AM org.apache.jk.common.ChannelSocket init INFO: Port busy 8889 java.net.BindException: Address already in use Feb 24, 2006 9:29:30 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8890 Feb 24, 2006 9:29:30 AM org.apache.jk.server.JkMain start INFO: Jk running ID=1 time=0/170 config=null Feb 24, 2006 9:29:30 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 27445 ms --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org