You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2010/10/14 09:20:19 UTC

svn commit: r1022394 - in /openejb/branches/openejb-3.1.3: ./ assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/ container/openejb-core/src/main/resources/ container/openejb-core/src/main/resources/META...

Author: dblevins
Date: Thu Oct 14 07:20:19 2010
New Revision: 1022394

URL: http://svn.apache.org/viewvc?rev=1022394&view=rev
Log:
svn merge -r 1022392:1022393 https://svn.apache.org/repos/asf/openejb/branches/openejb-3.1.x

http://svn.apache.org/viewvc?rev=1022393&view=rev
------------------------------------------------------------------------
r1022393 | dblevins | 2010-10-14 00:15:53 -0700 (Thu, 14 Oct 2010) | 3 lines

Yanked the quotes from the 'DefaultUser "guest"' line
Took the opportunity to document the -XX:SoftRefLRUPolicyMSPerMB vm setting relating to the GarbageCollection option

------------------------------------------------------------------------

Modified:
    openejb/branches/openejb-3.1.3/   (props changed)
    openejb/branches/openejb-3.1.3/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml
    openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml
    openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
    openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/default.openejb.conf
    openejb/branches/openejb-3.1.3/container/openejb-core/src/test/java/org/apache/openejb/config/BusinessInterfacesTest.java   (props changed)
    openejb/branches/openejb-3.1.3/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
    openejb/branches/openejb-3.1.3/examples/alternate-descriptors/src/main/resources/META-INF/test.ejb-jar.xml   (props changed)

Propchange: openejb/branches/openejb-3.1.3/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Oct 14 07:20:19 2010
@@ -1,3 +1,3 @@
 /openejb/branches/openejb-3.1.1:779593
-/openejb/branches/openejb-3.1.x:1021442,1021445,1021880,1021903,1021955,1021961,1021965,1021975,1021979,1021990,1022375,1022380
+/openejb/branches/openejb-3.1.x:1021442,1021445,1021880,1021903,1021955,1021961,1021965,1021975,1021979,1021990,1022375,1022380,1022393
 /openejb/trunk/openejb3:943472,943862,943965,944757,945989,946399,946485,946489,946705,946792,946805,946814,946861,946863-946864,947010,947017,947042,948022,948241,948243,948548,949014,949233,950391,950801,951611,953191,953196,953556,955104,955496,957463,962382,962750,987030

Modified: openejb/branches/openejb-3.1.3/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.3/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml?rev=1022394&r1=1022393&r2=1022394&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.3/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.3/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml Thu Oct 14 07:20:19 2010
@@ -275,8 +275,19 @@
     # machine as per the rules of java.lang.ref.SoftReference and can be
     # claimed by the JVM to free memory.  Instances garbage collected
     # will have their @PreDestroy methods called during finalization.
+    #
+    # In the OpenJDK VM the -XX:SoftRefLRUPolicyMSPerMB flag can adjust
+    # how aggressively SoftReferences are collected.  The default
+    # OpenJDK setting is 1000, resulting in inactive pooled instances
+    # living one second of lifetime per free megabyte in the heap, which
+    # is very aggressive.  The setting should be increased to get the
+    # most out of the GarbageCollection feature of the pool.  Much
+    # higher settings are safe.  Even a setting as high as 3600000 (1
+    # hour per free MB in the heap) does not affect the ability for the
+    # VM to garbage collect SoftReferences in the event that memory is
+    # needed to avoid an OutOfMemoryException.
 
-    GarbageCollection = true
+    GarbageCollection = false
 
     # The frequency in which the container will sweep the pool and
     # evict expired instances.  Eviction is how the IdleTimeout,

Modified: openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml?rev=1022394&r1=1022393&r2=1022394&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml Thu Oct 14 07:20:19 2010
@@ -268,8 +268,19 @@
     # machine as per the rules of java.lang.ref.SoftReference and can be
     # claimed by the JVM to free memory.  Instances garbage collected
     # will have their @PreDestroy methods called during finalization.
+    #
+    # In the OpenJDK VM the -XX:SoftRefLRUPolicyMSPerMB flag can adjust
+    # how aggressively SoftReferences are collected.  The default
+    # OpenJDK setting is 1000, resulting in inactive pooled instances
+    # living one second of lifetime per free megabyte in the heap, which
+    # is very aggressive.  The setting should be increased to get the
+    # most out of the GarbageCollection feature of the pool.  Much
+    # higher settings are safe.  Even a setting as high as 3600000 (1
+    # hour per free MB in the heap) does not affect the ability for the
+    # VM to garbage collect SoftReferences in the event that memory is
+    # needed to avoid an OutOfMemoryException.
 
-    GarbageCollection = true
+    GarbageCollection = false
 
     # The frequency in which the container will sweep the pool and
     # evict expired instances.  Eviction is how the IdleTimeout,
@@ -448,7 +459,7 @@
           types="SecurityService"
           class-name="org.apache.openejb.core.security.SecurityServiceImpl">
   
-    DefaultUser "guest"         
+    DefaultUser guest         
   </ServiceProvider>
 
   <ServiceProvider

Modified: openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml?rev=1022394&r1=1022393&r2=1022394&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml Thu Oct 14 07:20:19 2010
@@ -270,8 +270,19 @@
     # machine as per the rules of java.lang.ref.SoftReference and can be
     # claimed by the JVM to free memory.  Instances garbage collected
     # will have their @PreDestroy methods called during finalization.
-    
-    GarbageCollection = true
+    #
+    # In the OpenJDK VM the -XX:SoftRefLRUPolicyMSPerMB flag can adjust
+    # how aggressively SoftReferences are collected.  The default
+    # OpenJDK setting is 1000, resulting in inactive pooled instances
+    # living one second of lifetime per free megabyte in the heap, which
+    # is very aggressive.  The setting should be increased to get the
+    # most out of the GarbageCollection feature of the pool.  Much
+    # higher settings are safe.  Even a setting as high as 3600000 (1
+    # hour per free MB in the heap) does not affect the ability for the
+    # VM to garbage collect SoftReferences in the event that memory is
+    # needed to avoid an OutOfMemoryException.
+
+    GarbageCollection = false
 
     # The frequency in which the container will sweep the pool and
     # evict expired instances.  Eviction is how the IdleTimeout,
@@ -451,7 +462,7 @@
           types="SecurityService"
           class-name="org.apache.openejb.core.security.SecurityServiceImpl">
   
-    DefaultUser "guest"         
+    DefaultUser guest         
   </ServiceProvider>
 
   <ServiceProvider

Modified: openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/default.openejb.conf
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/default.openejb.conf?rev=1022394&r1=1022393&r2=1022394&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/default.openejb.conf (original)
+++ openejb/branches/openejb-3.1.3/container/openejb-core/src/main/resources/default.openejb.conf Thu Oct 14 07:20:19 2010
@@ -133,15 +133,6 @@
 
   IdleTimeout = 0 minutes
 
-  # Allows Garbage Collection to be used as a mechanism for shrinking
-  # the pool.  When set to true all instances in the pool, excluding
-  # the minimum, are eligible for garbage collection by the virtual
-  # machine as per the rules of java.lang.ref.SoftReference and can be
-  # claimed by the JVM to free memory.  Instances garbage collected
-  # will have their @PreDestroy methods called during finalization.
-
-  GarbageCollection = true
-
 </Container>
 
 

Propchange: openejb/branches/openejb-3.1.3/container/openejb-core/src/test/java/org/apache/openejb/config/BusinessInterfacesTest.java
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Oct 14 07:20:19 2010
@@ -1,3 +1,3 @@
 /openejb/branches/openejb-3.1.1/container/openejb-core/src/test/java/org/apache/openejb/config/UberInterfaceTest.java:779593
-/openejb/branches/openejb-3.1.x/container/openejb-core/src/test/java/org/apache/openejb/config/BusinessInterfacesTest.java:1021442,1021445,1021880,1021903,1021955,1021961,1021965,1021975,1021979,1021990,1022375,1022380
+/openejb/branches/openejb-3.1.x/container/openejb-core/src/test/java/org/apache/openejb/config/BusinessInterfacesTest.java:1021442,1021445,1021880,1021903,1021955,1021961,1021965,1021975,1021979,1021990,1022375,1022380,1022393
 /openejb/trunk/openejb3/container/openejb-core/src/test/java/org/apache/openejb/config/BusinessInterfacesTest.java:943472,943862,943965,944757,945989,946399,946485,946489,946705,946792,946805,946814,946861,946863-946864,947010,947017,947042,948022,948241,948548,949014,949233,950391,950801,951611,953191,953196,953556,955104,955496,957463,962382,962750,987030,1004172

Modified: openejb/branches/openejb-3.1.3/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.3/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml?rev=1022394&r1=1022393&r2=1022394&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.3/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.3/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml Thu Oct 14 07:20:19 2010
@@ -270,8 +270,19 @@
     # machine as per the rules of java.lang.ref.SoftReference and can be
     # claimed by the JVM to free memory.  Instances garbage collected
     # will have their @PreDestroy methods called during finalization.
-
-    GarbageCollection = true
+    #
+    # In the OpenJDK VM the -XX:SoftRefLRUPolicyMSPerMB flag can adjust
+    # how aggressively SoftReferences are collected.  The default
+    # OpenJDK setting is 1000, resulting in inactive pooled instances
+    # living one second of lifetime per free megabyte in the heap, which
+    # is very aggressive.  The setting should be increased to get the
+    # most out of the GarbageCollection feature of the pool.  Much
+    # higher settings are safe.  Even a setting as high as 3600000 (1
+    # hour per free MB in the heap) does not affect the ability for the
+    # VM to garbage collect SoftReferences in the event that memory is
+    # needed to avoid an OutOfMemoryException.
+    
+    GarbageCollection = false
 
     # The frequency in which the container will sweep the pool and
     # evict expired instances.  Eviction is how the IdleTimeout,

Propchange: openejb/branches/openejb-3.1.3/examples/alternate-descriptors/src/main/resources/META-INF/test.ejb-jar.xml
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Oct 14 07:20:19 2010
@@ -1,3 +1,3 @@
 /openejb/branches/openejb-3.1.1/examples/alternate-descriptors/src/main/resources/META-INF/ejb-jar.xml:779593
-/openejb/branches/openejb-3.1.x/examples/alternate-descriptors/src/main/resources/META-INF/test.ejb-jar.xml:1021442,1021445,1021880,1021903,1021955,1021961,1021965,1021975,1021979,1021990,1022375,1022380
+/openejb/branches/openejb-3.1.x/examples/alternate-descriptors/src/main/resources/META-INF/test.ejb-jar.xml:1021442,1021445,1021880,1021903,1021955,1021961,1021965,1021975,1021979,1021990,1022375,1022380,1022393
 /openejb/trunk/openejb3/examples/alternate-descriptors/src/main/resources/META-INF/test.ejb-jar.xml:943472,943862,943965,944757,945989,946399,946485,946489,946705,946792,946805,946814,946861,946863-946864,947010,947017,947042,948022,948241,948243,948548,949014,949233,950391,950801,951611,953191,953196,953556,955104,955496,957463,962382,962750,987030