cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/store MRUMemoryStore.java
Date Fri, 24 Aug 2001 00:33:10 GMT
vgritsenko    01/08/23 17:33:10

  Modified:    src/org/apache/cocoon/components/store MRUMemoryStore.java
  Log:
  Patch from Marcus Crafter [crafterm@fztig938.bank.dresdner.net]
  
  Revision  Changes    Path
  1.15      +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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- MRUMemoryStore.java	2001/08/23 12:20:33	1.14
  +++ MRUMemoryStore.java	2001/08/24 00:33:10	1.15
  @@ -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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message