Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 15294 invoked from network); 16 Dec 2005 17:03:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Dec 2005 17:03:34 -0000 Received: (qmail 59680 invoked by uid 500); 16 Dec 2005 17:03:31 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 59482 invoked by uid 500); 16 Dec 2005 17:03:30 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 59471 invoked by uid 99); 16 Dec 2005 17:03:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 09:03:30 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.230.240.35] (HELO eastrmmtao04.cox.net) (68.230.240.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 09:03:29 -0800 Received: from [192.168.0.102] (really [70.179.64.83]) by eastrmmtao04.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051216170039.VSDI19943.eastrmmtao04.cox.net@[192.168.0.102]> for ; Fri, 16 Dec 2005 12:00:39 -0500 Message-ID: <43A2F34A.30000@reverycodes.com> Date: Fri, 16 Dec 2005 12:03:06 -0500 From: Vadim Gritsenko User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Cocoon hang in excalibur-pool References: <43A21058.7020606@dslextreme.com> <43A23A61.3040501@reverycodes.com> <43A26DFA.7090006@dslextreme.com> <43A2DFBC.8040209@reverycodes.com> <43A2E73E.5000408@dslextreme.com> In-Reply-To: <43A2E73E.5000408@dslextreme.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ralph Goers wrote: > OK. I'm wondering if the real problem is simply that the getDocument > method is completely synchronized? It's *good*. You don't really want several threads trying to load *same* document. It's not perfect though. I see that XMLFileModule, when used in conjunction with cocoon:// protocol, might be a bit ... inefficient. Usage of DelayedValidity is prescribed here. Do you want to make a stab at implementing delay: protocol? :) > As far as pools go, I feel like a complete idiot. See my comments below. > > Vadim Gritsenko wrote: > >> Ralph Goers wrote: >> >>> Thanks Vadim. I'm posting this back to the Cocoon list as it seems >>> what you are telling me is that the problem is either with the >>> XMLFileModule or with running out of components in the pool on the >>> pipeline being invoked. >>> >>> What I am not clear on is what you are trying to tell me in the last >>> paragraph. Are you saying that the deadlock can be avoided by >>> configuring the components being used in the target pipeline >>> differently? >> >> I've not looked into pool source code yesterday to double check all >> points myself. I'm suggesting you to check: >> >> * What type of pool is really used > > Where is that specified? I know you can specify what type of pipeline > you want but where is the type of pool configured? Follow the stacktrace. Who created pool decides, and I bet that's not something which is configured anywhere. See the source code. >> * Why it is blocking (I guessed it is blocking due to resource >> exhaustion) > > My guess is that the requests are simply coming in faster than > XMLFileModule is taking to release the lock. That's not important, IMHO. Problem is in pool's lock, not XMLFileModule's lock. >> * If it's hard limiting pool - why it's not soft limiting pool > > Again - is that configured somewhere? Don't think so. >> * Try increasing pipes pool size for a quick fix > > I assume you mean on the components in the pipeline? I've never seen a > reference before to pipelines themselves being pooled. public abstract class AbstractProcessingPipeline extends AbstractLogEnabled implements ProcessingPipeline, Parameterizable, Recyclable { See that Recyclable? Now try in sitemap: > Thanks Vadim, and I apologize if some of these seem like really lame > questions to you. Yup. Vadim