Author: bago
Date: Tue Feb 6 02:42:54 2007
New Revision: 504070
URL: http://svn.apache.org/viewvc?view=rev&rev=504070
Log:
Backport for positive dns resolution cache (r502713). Applied a default 300
seconds expiration. (JAMES-679 / JAMES-592)
Modified:
james/server/branches/v2.3/JAMES_PHOENIX.txt
james/server/branches/v2.3/phoenix-bin/bin/phoenix-loader.jar
james/server/branches/v2.3/phoenix-bin/bin/phoenix.sh
james/server/branches/v2.3/phoenix-bin/bin/run.bat
james/server/branches/v2.3/phoenix-bin/conf/wrapper.conf
Modified: james/server/branches/v2.3/JAMES_PHOENIX.txt
URL:
http://svn.apache.org/viewvc/james/server/branches/v2.3/JAMES_PHOENIX.txt?view=diff&rev=504070&r1=504069&r2=504070
==============================================================================
--- james/server/branches/v2.3/JAMES_PHOENIX.txt (original)
+++ james/server/branches/v2.3/JAMES_PHOENIX.txt Tue Feb 6 02:42:54 2007
@@ -12,6 +12,18 @@
- upgraded wrapper.* files to 3.2.0 release
(http://wrapper.tanukisoftware.org/)
+- added this code to org.apache.avalon.phoenix.launcher.Main:121:
+ ---------------------------------
+ // Set the Security property to the same value of the system property.
+ String ttlcache = System.getProperty("networkaddress.cache.ttl");
+ if (ttlcache != null) {
+ Security.setProperty("networkaddress.cache.ttl" , ttlcache);
+ }
+ ---------------------------------
+
+- added a "-Dnetworkaddress.cache.ttl=300" to all executing scripts:
+ wrapper.conf, phoenix.sh, run.bat, james-server.sh
+
Changed the build.xml to reflect the changes.
Rebuilt.
Modified: james/server/branches/v2.3/phoenix-bin/bin/phoenix-loader.jar
URL:
http://svn.apache.org/viewvc/james/server/branches/v2.3/phoenix-bin/bin/phoenix-loader.jar?view=diff&rev=504070&r1=504069&r2=504070
==============================================================================
Binary files - no diff available.
Modified: james/server/branches/v2.3/phoenix-bin/bin/phoenix.sh
URL:
http://svn.apache.org/viewvc/james/server/branches/v2.3/phoenix-bin/bin/phoenix.sh?view=diff&rev=504070&r1=504069&r2=504070
==============================================================================
--- james/server/branches/v2.3/phoenix-bin/bin/phoenix.sh (original)
+++ james/server/branches/v2.3/phoenix-bin/bin/phoenix.sh Tue Feb 6 02:42:54
2007
@@ -133,6 +133,10 @@
JVM_OPTS="$JVM_OPTS -Djava.security.manager"
fi
+# Make sure we don't run with a never expiring cache for InetAddress
+# In Phoenix Main this is read and applied as Security.setProperty
+PHOENIX_JVM_OPTS="$PHOENIX_JVM_OPTS -Dnetworkaddress.cache.ttl=300"
+
# change to the bin directory
cd $PHOENIX_HOME/bin
Modified: james/server/branches/v2.3/phoenix-bin/bin/run.bat
URL:
http://svn.apache.org/viewvc/james/server/branches/v2.3/phoenix-bin/bin/run.bat?view=diff&rev=504070&r1=504069&r2=504070
==============================================================================
--- james/server/branches/v2.3/phoenix-bin/bin/run.bat (original)
+++ james/server/branches/v2.3/phoenix-bin/bin/run.bat Tue Feb 6 02:42:54 2007
@@ -76,6 +76,10 @@
:postSecure
+rem Make sure we don't run with a never expiring cache for InetAddress
+rem In Phoenix Main this is read and applied as Security.setProperty
+set PHOENIX_JVM_OPTS=%PHOENIX_JVM_OPTS% -Dnetworkaddress.cache.ttl=300
+
rem
rem -Djava.ext.dirs= is needed as some JVM vendors do foolish things
rem like placing jaxp/jaas/xml-parser jars in ext dir
Modified: james/server/branches/v2.3/phoenix-bin/conf/wrapper.conf
URL:
http://svn.apache.org/viewvc/james/server/branches/v2.3/phoenix-bin/conf/wrapper.conf?view=diff&rev=504070&r1=504069&r2=504070
==============================================================================
--- james/server/branches/v2.3/phoenix-bin/conf/wrapper.conf (original)
+++ james/server/branches/v2.3/phoenix-bin/conf/wrapper.conf Tue Feb 6
02:42:54 2007
@@ -23,6 +23,8 @@
wrapper.java.additional.2=-Dphoenix.home=..
wrapper.java.additional.3=-Djava.security.policy=jar:file:phoenix-loader.jar!/META-INF/java.policy
wrapper.java.additional.4=-Djava.security.manager
+# In Phoenix Main this is read and applied as Security.setProperty
+wrapper.java.additional.5=-Dnetworkaddress.cache.ttl=300
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=16
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]