On Fri, 25 Aug 2000, Santiago Gala wrote:

> I am experiencing a strange deadlock during cache updates. To me, it
> happens only with tomcat, under FreeBSD 1.1.8 green threads, and not
> under my other setups.
> 
> It is related to DNS lookup. The symptoms are:
> 
> After a while updating the cache, the VM hangs.
> 
> In fact, this VM stops responding while there is a DNS lookup, but
> sometimes it freezes. It looks as if the thread "missed" the query
> response. This thread holds locks, including the IO Monitor lock, that
> stop the whole virtual machine.
> 
> I have not seen a similar behaviour with my other setups, identical
> except:
> 
> NT, jdk1.2.2, hotspot server
> NT jdk 1.3, hotspot server
> Linux, jdk1.1.7, with/without JIT, green threads
> Linux jdk1.2.2, with JIT, native threads
> Linux jdk1.3b9, hotspot client, native threads
> 
> All ofthem work perfectly. The problem is the FreeBSD setup is the only
> available in my public "virtual" server... :-(((((

There is a java dns resolver that may work for you. It could
be a bit of work to implement thou. The package is called
dnsjava and a quick web search should find it. There is an
example of it's use in JAMES ( mail server project on
java.apache.org )

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     | Does the name 'Pavlov' |
| Bundoora, Australia     |    ring a bell ?       |
*--------------------------------------------------*



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to