Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 30771 invoked from network); 7 Jun 2010 20:55:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 20:55:42 -0000 Received: (qmail 13966 invoked by uid 500); 7 Jun 2010 20:55:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 13860 invoked by uid 500); 7 Jun 2010 20:55:41 -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 13840 invoked by uid 99); 7 Jun 2010 20:55:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 20:55:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of NilsKaiser@gmx.net 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; Mon, 07 Jun 2010 20:55:31 +0000 Received: (qmail invoked by alias); 07 Jun 2010 20:55:09 -0000 Received: from i577BE8DE.versanet.de (EHLO [192.168.2.100]) [87.123.232.222] by mail.gmx.net (mp059) with SMTP; 07 Jun 2010 22:55:09 +0200 X-Authenticated: #32721211 X-Provags-ID: V01U2FsdGVkX1/+RLprMLr+/J5YkQc70QG5gk/i0drby4nb/5M3rs XXW3yQryfryOmG Message-ID: <4C0D5CBD.7020304@gmx.net> Date: Mon, 07 Jun 2010 22:55:25 +0200 From: Nils Kaiser User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.5pre) Gecko/20100430 Lightning/1.0b2pre Thunderbird/3.1b2 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: high memory usage in MemoryAspectDataStore (portal block) Content-Type: multipart/alternative; boundary="------------050504090806030308030903" X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org --------------050504090806030308030903 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hi all, I am having trouble with a cocoon 2.1 portal application. We use a single layout for the site, users cannot really customize it but some maximizing/restoring is done (a search coplet that maximizes to show search results for example). At the moment, the servers are restarted every night as memory usage is increasing over the day. A heap dump analysis showed that the MemoryAspectDataStore grows to ~300MB, with ~300000 entries in the store (HashMap). These result from coplet data aspect for the aspects "sizable" and "mandatory" being saved in the MemoryAspectDataStore. I thought a quick solution would have been to change their store from "memory" to "session", but there is a comment in the original cocoon.xconf "Use only the 'memory' aspect store with aspect datas!", so I did not try that. I couldn't find any code that empties the store or deletes formerly added entries, so I suppose that something is wrong with our usage of layout / coplet data objects? Both coplet instance data and layout data are currently saved and read to xml files on disk as some information is stored in the user objects. Also, the application automatically creates a user for any new session, which adds 15 entries to the MemoryAspectDataStore. It seems that the login (LoginAction) of the user (anonymous or regular) triggers a loading of the profile (GroupBasedProfileManager.login()), which in turn writes the aspect data for every coplet to the MemoryAspectDataStore, where it seem to stay forever. Is this normal behavior or does it happen to an invalid configuration? Thanks for any hint! Best regards, Nils Kaiser --------------050504090806030308030903 Content-Type: text/html; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Hi all,
I am having trouble with a cocoon 2.1 portal application. We use a single layout for the site, users cannot really customize it but some maximizing/restoring is done (a search coplet that maximizes to show search results for example).
At the moment, the servers are restarted every night as memory usage is increasing over the day. A heap dump analysis showed that the MemoryAspectDataStore grows to ~300MB, with ~300000 entries in the store (HashMap). These result from coplet data aspect for the aspects "sizable" and "mandatory" being saved in the MemoryAspectDataStore. I thought a quick solution would have been to change their store from "memory" to "session", but there is a comment in the original cocoon.xconf "Use only the 'memory' aspect store with aspect datas!", so I did not try that.
I couldn't find any code that empties the store or deletes formerly added entries, so I suppose that something is wrong with our usage of layout / coplet data objects? Both coplet instance data and layout data are currently saved and read to xml files on disk as some information is stored in the user objects. Also, the application �automatically creates a user for any new session, which adds 15 entries to the MemoryAspectDataStore. It seems that the login (LoginAction) of the user (anonymous or regular) triggers a loading of the profile (GroupBasedProfileManager.login()), which in turn writes the aspect data for every coplet to the MemoryAspectDataStore, where it seem to stay forever.
Is this normal behavior or does it happen to an invalid configuration?
Thanks for any hint!
Best regards,
Nils Kaiser
--------------050504090806030308030903--