vgritsenko 01/08/23 17:33:48
Modified: src/org/apache/cocoon/components/store Tag: cocoon_20_branch
MRUMemoryStore.java
Log:
Patch from Marcus Crafter [[EMAIL PROTECTED]]
Revision Changes Path
No revision
No revision
1.2.2.13 +8 -0
xml-cocoon2/src/org/apache/cocoon/components/store/MRUMemoryStore.java
Index: MRUMemoryStore.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/store/MRUMemoryStore.java,v
retrieving revision 1.2.2.12
retrieving revision 1.2.2.13
diff -u -r1.2.2.12 -r1.2.2.13
--- MRUMemoryStore.java 2001/08/23 12:22:23 1.2.2.12
+++ MRUMemoryStore.java 2001/08/24 00:33:48 1.2.2.13
@@ -208,8 +208,16 @@
while (true) {
// amount of memory used is greater then heapsize
if (this.jvm.totalMemory() - this.jvm.freeMemory() > this.heapsize) {
+ getLogger().debug(
+ "Invoking garbage collection, total memory = " +
+ this.jvm.totalMemory() + ", free memory = " + this.jvm.freeMemory()
+ );
this.jvm.runFinalization();
this.jvm.gc();
+ getLogger().debug(
+ "Garbage collection complete, total memory = " +
+ this.jvm.totalMemory() + ", free memory = " + this.jvm.freeMemory()
+ );
synchronized (this) {
while ((this.cache.size() > 0) && (this.jvm.freeMemory() <
this.freememory)) {
this.free();
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]