activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tmie...@apache.org
Subject svn commit: r1234779 - /activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/store/amq/CustomResourceLoader.java
Date Mon, 23 Jan 2012 13:26:11 GMT
Author: tmielke
Date: Mon Jan 23 13:26:11 2012
New Revision: 1234779

URL: http://svn.apache.org/viewvc?rev=1234779&view=rev
Log:
AMQ-3665: Turned on Velocity template caching to reduce memory footprint of AMQ store journal
reader. 

Modified:
    activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/store/amq/CustomResourceLoader.java

Modified: activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/store/amq/CustomResourceLoader.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/store/amq/CustomResourceLoader.java?rev=1234779&r1=1234778&r2=1234779&view=diff
==============================================================================
--- activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/store/amq/CustomResourceLoader.java
(original)
+++ activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/store/amq/CustomResourceLoader.java
Mon Jan 23 13:26:11 2012
@@ -41,6 +41,10 @@ public class CustomResourceLoader extend
     public void init( ExtendedProperties configuration)
     {
     	fileResourceLoader.init(configuration);
+    	
+    	// AMQ-3665: Turn on template caching as otherwise the journal reader 
+    	// could run out of memory on large journal files
+    	this.setCachingOn(true); 
     }
     
     /**



Mime
View raw message