AMQ-3665: Turned on Velocity template caching to reduce memory footprint of AMQ store journal reader.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1234779 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Torsten Mielke 2012-01-23 13:26:11 +00:00
parent 999dc0df20
commit 4ddd9019c8
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ public class CustomResourceLoader extends ResourceLoader {
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);
}
/**