Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 64144 invoked from network); 27 Mar 2008 12:18:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Mar 2008 12:18:35 -0000 Received: (qmail 71820 invoked by uid 500); 27 Mar 2008 12:18:32 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71765 invoked by uid 500); 27 Mar 2008 12:18:32 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 71731 invoked by uid 99); 27 Mar 2008 12:18:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Mar 2008 05:18:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joerg.heinicke@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 27 Mar 2008 12:17:52 +0000 Received: (qmail invoked by alias); 27 Mar 2008 12:18:02 -0000 Received: from c-76-116-243-84.hsd1.pa.comcast.net (EHLO c-76-116-243-84.hsd1.pa.comcast.net) [76.116.243.84] by mail.gmx.net (mp045) with SMTP; 27 Mar 2008 13:18:02 +0100 X-Authenticated: #3483660 X-Provags-ID: V01U2FsdGVkX188XtZaIeY8Cib0rbEJiDiOYp7pIt128ut5unBb09 POHYoDVlWGscQv Message-ID: <47EB9079.6010702@gmx.de> Date: Thu, 27 Mar 2008 08:18:01 -0400 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.12) Gecko/20080201 SeaMonkey/1.1.8 MIME-Version: 1.0 To: dev@cocoon.apache.org CC: users@cocoon.apache.org Subject: Re: Javaflow - major memory issue References: <966697.91329.qm@web57908.mail.re3.yahoo.com> <47EB230C.9090805@gmx.de> <927C343A-D85A-49F3-9D23-684F7B206E86@apache.org> In-Reply-To: <927C343A-D85A-49F3-9D23-684F7B206E86@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org On 27.03.2008 04:39, Torsten Curdt wrote: >>> Sure, here is the hierarchy from bottom to top. At this point, I ran >>> the test for about five >>> minutes (running longer would increase the percentage) and the >>> retained size of the one >>> ContinuationsManagerImpl object is 58% of the total. The >>> BufferedOutputStream is 50% of the >>> total, so the other 8% is consumed by the objects in between. >>> org.apache.cocoon.util.BufferedOutputStream >>> secureOutputStream of >>> org.apache.cocoon.environment.http.HttpEnvironment >>> env of >>> org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector >>> redirector of >>> org.apache.cocoon.components.flow.java.ContinuationContext >> >> What I was so much concerned about here was the fact of storing the >> whole environment in the continuation, especially since we have this >> non-flushing BufferedOutputStream at the end. Is there any point in >> storing the environment? Do we get anything useful out of it after >> continueing the continuation? > > What do you mean by "environment" ...it's not like the whole jvm is > stored but only the flow. External resources should be injected (vs > stored) as much as possible. Just have a look at the quote from the original. It gives the object relationships in the memory. BufferedOutputStream takes 50% and is hold in HttpEnvironment which is hold in TreeProcessorRedirector which is hold in ContinuationContext. I wondered why it is there. Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org