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:15:54 UTC
svn commit: r1022393 - in /openejb/branches/openejb-3.1.x:
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-IN...
Author: dblevins
Date: Thu Oct 14 07:15:53 2010
New Revision: 1022393
URL: http://svn.apache.org/viewvc?rev=1022393&view=rev
Log:
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.x/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml
openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml
openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/default.openejb.conf
openejb/branches/openejb-3.1.x/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml
Modified: openejb/branches/openejb-3.1.x/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.x/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml?rev=1022393&r1=1022392&r2=1022393&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.x/assembly/openejb-tomcat/openejb-tomcat-webapp/src/main/resources/META-INF/org.apache.openejb.tomcat/service-jar.xml Thu Oct 14 07:15:53 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.x/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.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml?rev=1022393&r1=1022392&r2=1022393&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/service-jar.xml Thu Oct 14 07:15:53 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.x/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.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml?rev=1022393&r1=1022392&r2=1022393&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml Thu Oct 14 07:15:53 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.x/container/openejb-core/src/main/resources/default.openejb.conf
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/default.openejb.conf?rev=1022393&r1=1022392&r2=1022393&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/default.openejb.conf (original)
+++ openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/default.openejb.conf Thu Oct 14 07:15:53 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>
Modified: openejb/branches/openejb-3.1.x/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.x/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml?rev=1022393&r1=1022392&r2=1022393&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml (original)
+++ openejb/branches/openejb-3.1.x/container/openejb-osgi/src/main/resources/META-INF/org.apache.openejb/service-jar.xml Thu Oct 14 07:15:53 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,