Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 88426 invoked from network); 15 Dec 2004 12:25:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Dec 2004 12:25:28 -0000 Received: (qmail 20253 invoked by uid 500); 15 Dec 2004 12:10:33 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 20228 invoked by uid 500); 15 Dec 2004 12:10:33 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 20207 invoked by uid 99); 15 Dec 2004 12:10:32 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Dec 2004 04:10:28 -0800 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CeXz7-0003Ft-00 for ; Wed, 15 Dec 2004 13:10:25 +0100 Received: from port-212-202-101-206.static.qsc.de ([212.202.101.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Dec 2004 13:10:25 +0100 Received: from bkoch by port-212-202-101-206.static.qsc.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Dec 2004 13:10:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org From: Britta Koch Subject: Tomcat (and JVM) Crashes in getHostByAddr Date: Wed, 15 Dec 2004 13:00:07 +0100 Organization: MUNDWERK AG Lines: 37 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: port-212-202-101-206.static.qsc.de User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi! We're migrating our web applications from Resin 2.1.13 to Tomcat 5.0.28 (running with jsvc on JDK 1.5, Fedora FC2). All of these use our own libraries to get host based configurations from the web.xml which contains resource-refs of the form host.domain.de_database. After deploying one of these applications, tomcat dies sometimes, sometimes it just stalls (others applications worked, and on resin it still works fine). The stack trace from one killing shows that it crashed while trying to get the FQDN (for getting a db connection) during the startup listener: C [libc.so.6+0x5ad23] _IO_file_underflow+0x173 C [libc.so.6+0x5d46d] _IO_default_uflow+0x1d C [libc.so.6+0x5d103] __uflow+0xa3 C [libc.so.6+0x51f1a] _IO_getline_info+0xfa C [libc.so.6+0x51e11] _IO_getline+0x41 C [libc.so.6+0x5a0bd] fgets_unlocked+0x5d C [libnss_files.so.2+0x39d1] _nss_files_gethostbyname_r+0x141 C [libc.so.6+0xcf009] gethostbyname_r+0x119 C [libnet.so+0x4d61] Java_java_net_Inet4AddressImpl_getLocalHostName+0x91 j java.net.Inet4AddressImpl.getLocalHostName()Ljava/lang/String;+0 If the tomcat doesn't die, you can still get static pages, but no dynamic jsps, and you have to kill -9 the process. We have set the java properties -Dnetworkaddress.cache.ttl=120 -Duser.timezone=CET hoping to solve the problem. Has anyone had the same problem or can you give me any tips on how to deal with this? Thanx in advance, Britta Koch --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org