Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 95827 invoked by uid 500); 4 Feb 2002 15:20:39 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 95810 invoked from network); 4 Feb 2002 15:20:39 -0000 From: "Vadim Gritsenko" To: Cc: Subject: RE: Improved the feeled performance! Date: Mon, 4 Feb 2002 10:19:18 -0500 Message-ID: <007101c1ad8f$50c215f0$0a00a8c0@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <3C46E39C.6119BF75@wincor-nixdorf.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Enke, > From: Enke Michael [mailto:Michael.Enke@wincor-nixdorf.com] > > Hi people, > as we have a default Buffer of 8192 byte in the AbstractTextSerializer > sometimes it takes very long until any result is visible in the browser. It is configurable in the sitemap.xmap (or cocoon.xconf in latest CVS). Use 512 parameter to specify buffer size you want. > Therefore I introduced an "OutputFlusher" which flushes the > BufferedOutputStream > per default every 500 ms. Now the pageheader is shown immediately, independent > of how long it takes to fill 8192 byte. There is one issue with solution you are proposing: It uses one thread per serializer in the system. It is not very efficient; better solution is to use just one thread to manage all buffers. Such manager is already implemented in the Avalon, class ActiveMonitor, and can be applied to the monitoring multiple output streams. See avalon.excalibur.monitor package. And this monitor already declared in the cocoon.xconf - so it is ready to use. > I hope this helps. > I prepared AbstractTextSerializer to get the time in milliseconds > from cocoon.xconf, the name is "flush-time", default is 500, values below 100 > are set to 100, value of 0 means no flushing. > But I have no idea how to setup, what to put in cocoon.xconf. Take a look at the AbstractTextSerializer's configure() method, and follow the code for the buffer-size parameter. > Do I have to put AbstractTextSerializer into cocoon.roles??? No, there is no need. Regards, Vadim --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org