Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 80248 invoked from network); 18 Nov 2004 11:59:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Nov 2004 11:59:05 -0000 Received: (qmail 52565 invoked by uid 500); 18 Nov 2004 11:59:00 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 52240 invoked by uid 500); 18 Nov 2004 11:58:59 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 52224 invoked by uid 99); 18 Nov 2004 11:58:59 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [213.46.255.13] (HELO viefep14-int.chello.at) (213.46.255.13) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 18 Nov 2004 03:58:56 -0800 Received: from [192.168.1.31] (really [62.178.239.20]) by viefep14-int.chello.at (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP id <20041118115841.WLYE12345.viefep14-int.chello.at@[192.168.1.31]> for ; Thu, 18 Nov 2004 12:58:41 +0100 Message-ID: <419C8E6D.1010004@apache.org> Date: Thu, 18 Nov 2004 12:58:37 +0100 From: Reinhard Poetz User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Pesky memory problems (Tomcat/WindowsXP) References: <5E091A68F794974CAF431CA31F5AF2CC11E9B7@server.bizzdesign.nl> In-Reply-To: <5E091A68F794974CAF431CA31F5AF2CC11E9B7@server.bizzdesign.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bart Molenkamp wrote: >>Two "usual suspects" are Cron jobs calling pipelines and macros in >>JXTemplate. >> > > > I've had problems calling pipelines from Cron jobs. These caused > OutOfMemoryErrors. Could you explain why, or even better, how to solve > it? If I know it I would solve it ;-) I wrote this because I remember some people having memory problems with it. > > In my case, one Cron job that runs once every night sends mail to users. > About 110 users, so a pipeline is called 110 times (to generate the mail > content for every user). I use flowscript in that specific pipeline, and > I guess that there are 110 continuations stored in memory all at once... Hmmm, maybe you are right here and every pipeline call creates a new session with a new flowscript context. Multiplied with 110 this could really lead to a rather high memory consumption. Two thoughts: Maybe you can create only one job sending all mails. Second, it would be interesting to profile the application (OptimizeIt, ...) and monitor how many Flowscript contexts are created. -- Reinhard --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org