tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Britta Koch <>
Subject Tomcat (and JVM) Crashes in getHostByAddr
Date Wed, 15 Dec 2004 12:00:07 GMT

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

C  []  _IO_file_underflow+0x173
C  []  _IO_default_uflow+0x1d
C  []  __uflow+0xa3
C  []  _IO_getline_info+0xfa
C  []  _IO_getline+0x41
C  []  fgets_unlocked+0x5d
C  []  _nss_files_gethostbyname_r+0x141
C  []  gethostbyname_r+0x119
C  [] 
Java_java_net_Inet4AddressImpl_getLocalHostName+0x91 j;+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:
For additional commands, e-mail:

View raw message