You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ba...@apache.org on 2006/11/09 20:33:54 UTC
svn commit: r473041 - in /james/server/trunk/phoenix-bin/bin:
james-server.sh phoenix.sh run.bat
Author: bago
Date: Thu Nov 9 11:33:53 2006
New Revision: 473041
URL: http://svn.apache.org/viewvc?view=rev&rev=473041
Log:
Make sure our container use an expiration (10s) for cached dns data (JAMES-679)
This is also a workaround to avoid the OOM described in JAMES-592
We don't need this anymore because we removed every usage of InetAddress but 3rd party mailets could make use of InetAddress for their needs and we (the container) have to make sure the cache will expire (The preferred way is to use DNSServer services or dnsjava Lookup/Address objects)
Modified:
james/server/trunk/phoenix-bin/bin/james-server.sh
james/server/trunk/phoenix-bin/bin/phoenix.sh
james/server/trunk/phoenix-bin/bin/run.bat
Modified: james/server/trunk/phoenix-bin/bin/james-server.sh
URL: http://svn.apache.org/viewvc/james/server/trunk/phoenix-bin/bin/james-server.sh?view=diff&rev=473041&r1=473040&r2=473041
==============================================================================
--- james/server/trunk/phoenix-bin/bin/james-server.sh (original)
+++ james/server/trunk/phoenix-bin/bin/james-server.sh Thu Nov 9 11:33:53 2006
@@ -137,6 +137,9 @@
JVM_OPTS="$JVM_OPTS -Djava.security.manager"
fi
+# Make sure we don't run with a never expiring cache for InetAddress
+PHOENIX_JVM_OPTS="$PHOENIX_JVM_OPTS -Dsun.net.inetaddr.ttl=10"
+
# change to the bin directory
cd $PHOENIX_HOME/bin
Modified: james/server/trunk/phoenix-bin/bin/phoenix.sh
URL: http://svn.apache.org/viewvc/james/server/trunk/phoenix-bin/bin/phoenix.sh?view=diff&rev=473041&r1=473040&r2=473041
==============================================================================
--- james/server/trunk/phoenix-bin/bin/phoenix.sh (original)
+++ james/server/trunk/phoenix-bin/bin/phoenix.sh Thu Nov 9 11:33:53 2006
@@ -133,6 +133,9 @@
JVM_OPTS="$JVM_OPTS -Djava.security.manager"
fi
+# Make sure we don't run with a never expiring cache for InetAddress
+PHOENIX_JVM_OPTS="$PHOENIX_JVM_OPTS -Dsun.net.inetaddr.ttl=10"
+
# change to the bin directory
cd $PHOENIX_HOME/bin
Modified: james/server/trunk/phoenix-bin/bin/run.bat
URL: http://svn.apache.org/viewvc/james/server/trunk/phoenix-bin/bin/run.bat?view=diff&rev=473041&r1=473040&r2=473041
==============================================================================
--- james/server/trunk/phoenix-bin/bin/run.bat (original)
+++ james/server/trunk/phoenix-bin/bin/run.bat Thu Nov 9 11:33:53 2006
@@ -76,6 +76,10 @@
:postSecure
+
+rem Make sure we don't run with a never expiring cache for InetAddress
+set PHOENIX_JVM_OPTS=%PHOENIX_JVM_OPTS% -Dsun.net.inetaddr.ttl=10
+
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
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org