Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 99833 invoked from network); 25 Mar 2000 00:53:46 -0000 Received: from pop.systemy.it (194.20.140.28) by locus.apache.org with SMTP; 25 Mar 2000 00:53:46 -0000 Received: from apache.org (pv17-pri.systemy.it [194.21.255.17]) by pop.systemy.it (8.8.8/8.8.3) with ESMTP id BAA23403 for ; Sat, 25 Mar 2000 01:53:44 +0100 Message-ID: <38DC0505.8305E7D7@apache.org> Date: Sat, 25 Mar 2000 01:15:01 +0100 From: Stefano Mazzocchi Organization: Apache Software Foundation X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: it,en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: (PATCH) Better status information within MemoryStore References: <38DB4EDE.E278192A@relativity.yi.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N "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
"); > --- > > buffer.append("Memory Object Storage System:
"); > > > > //give back info on the total memory used. > > > > buffer.append( "Minimum required free memory: " + MEMORY + "
" ); > > buffer.append( "Current free memory: " + this.jvm.freeMemory() + "
" ); > > > > > 219a227 > > buffer.append("
    "); > 224a233 > > buffer.append("
"); > 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. Friedrich Nietzsche -------------------------------------------------------------------- Missed us in Orlando? Make it up with ApacheCON Europe in London! ------------------------- http://ApacheCon.Com ---------------------