cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: (PATCH) Better status information within MemoryStore
Date Sat, 25 Mar 2000 00:15:01 GMT
"Kevin A. Burton" wrote:
> 
> This is a small patch to put out a little more info on the memory store.

thanks, Kevin. I'm adding right away.
 
> Kevin
> ------------------
> 
> Index: src/org/apache/cocoon/store/MemoryStore.java
> ===================================================================
> RCS file:
> /home/cvspublic/xml-cocoon/src/org/apache/cocoon/store/MemoryStore.java,v
> retrieving revision 1.8
> diff -r1.8 MemoryStore.java
> 78c78
> <     private static final int memory = 500000;
> ---
> >     private static final int MEMORY = 500000;
> 113c113
> <         if (jvm.freeMemory() < memory) this.free();
> ---
> >         if (jvm.freeMemory() < MEMORY) this.free();
> 218c218,225
> <         buffer.append("Memory Object Storage System<br>");
> ---
> >         buffer.append("Memory Object Storage System:<br>");
> >
> >         //give back info on the total memory used.
> >
> >         buffer.append( "Minimum required free memory:  " + MEMORY + "<br>"
);
> >         buffer.append( "Current free memory: " + this.jvm.freeMemory() + "<br>"
);
> >
> >
> 219a227
> >         buffer.append("<ul>");
> 224a233
> >         buffer.append("</ul>");
> 227c236
> < }
> \ No newline at end of file
> ---
> > }
> 
> --
> Kevin A Burton (burton@apache.org)
> http://relativity.yi.org
> Message to SUN:  "Please Open Source Java!"
> "For evil to win is for good men to do nothing."


-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message