Fuad Efendi wrote:
Another cause of another problem:

By default, Java 1.4 caches DNS-to-IP mappings forever...

java.security.Security.setProperty("networkaddress.cache.ttl" ,
"10000");

I had to look up what the units are for this since your message
was possibly ambiguous.

The units are in seconds; 10000 is about 150 minutes, the default is -1.

When working with Weblogic a few years ago, I noticed that they included
the units in the property names.  For example:

    something.timeoutMsec  or  something.timeoutSec

similarly,

    final static int SOMETHING_TIMEOUT_MSEC = 2000;

I encourage this practice.


Paul


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to