|
Stefano Bagnara made changes - 09/Nov/06 07:35 PM
Please change this from 10 to 0, as in:
java.security.Security.setProperty("networkaddress.cache.ttl" , "0"); The change you made doesn't necessarily do what you think it does because the code in Sun's InetAddress.Cache implementation handles expiration only when the host name is queried or another entry is put (at which point it loops through the entire cache looking for expired entries). Otherwise, it just takes up space. For our purposes, it would be better to use the InetAddressCachePolicy.NEVER special case.
Noel J. Bergman made changes - 11/Nov/06 08:51 PM
I would agree with backporting
java.security.Security.setProperty("networkaddress.cache.ttl" , "0"); to v2.3.x/minor-next. Any reference to "-Dsun.net.inetaddr.ttl=10" should be eliminated, however. That has already been deprecated by Sun and is non-standard. Ok to change the 10 with 0.
About the setProperty: I think this property belong to the container, so I think we should better add it some phoenix class. Anyone against this? I want to know before loosing my time searching for the right class ;-) If someone is against, please tell where do you think this property belong.
Stefano Bagnara made changes - 04/Feb/07 04:42 PM
Reverted the sun specific change and applied the java standard solution (Security.setProperty)
--- Now james uses a default 300 seconds expiration for the positive dns results cache. The expiration is tunable via system property -Dnetworkaddress.cache.ttl Setting it to -1 will revert to the default "cache forever" JVM behaviour. Setting it to 0 will remove caching at all. Applied to trunk 4 days ago and backported to v2.3 (for 2.3.1) now. --- Please note that the v2.3 branch dnsservice still uses InetAddress so this configuration is really important, while in following branches (derived from current trunk) we don't use InetAddress anymore and this is only a safety belt for Mailets we host. Most people is not aware of this never-expired cache in the JVM and we protect them from easy errors.
Stefano Bagnara made changes - 06/Feb/07 10:58 AM
Closing issue fixed in released version.
Danny Angus made changes - 21/Nov/07 08:31 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Imo we should backport this to v2.3 and next-minor branches, too.