Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 2847 invoked from network); 24 Jul 2009 20:29:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jul 2009 20:29:27 -0000 Received: (qmail 33459 invoked by uid 500); 24 Jul 2009 20:30:31 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 33371 invoked by uid 500); 24 Jul 2009 20:30:31 -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 33363 invoked by uid 99); 24 Jul 2009 20:30:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 20:30:31 +0000 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 dariusz.luksza@gmail.com designates 209.85.219.217 as permitted sender) Received: from [209.85.219.217] (HELO mail-ew0-f217.google.com) (209.85.219.217) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 20:30:20 +0000 Received: by ewy17 with SMTP id 17so2267795ewy.18 for ; Fri, 24 Jul 2009 13:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=dXZQrA+jj9Y4HbNTQ815qfdJNHguxqkNnj1zsblDovE=; b=lPZnB1bJkwfKiSRgGiOgjlKqhgtT2hC0n0gTKbopK3zikiqiK6/NYRVdm1UrCIUUms yyq2edGBkH1EeOJYhq1Eg707MC2scyabkOuRIt/msXLlwPtklPyWPfyt8nb9nL9053il oSNUfEnqLkItb2BlEZ0opLTxWmPVbvi7U4RU0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=eVvDW6KL7iYsyPoCmxGKu9cm9eOyAm6oRF2nCPgSCOheg2W7uqsU/KdFYEFJky/93A VOYERBXQPbihkojIU78qeH6P6N20sr+5V31Morwn09K9HLtFTNd1lzCM/OmC/9zUw4WJ ddkhfuaPolh2a2Gl3rgisw9k6hWTqFJvL4NFA= MIME-Version: 1.0 Received: by 10.216.91.10 with SMTP id g10mr76639wef.71.1248467399129; Fri, 24 Jul 2009 13:29:59 -0700 (PDT) In-Reply-To: References: <4A5E236C.5090909@apache.org> <4A65A089.8040700@apache.org> From: =?UTF-8?Q?Dariusz_=C5=81uksza?= Date: Fri, 24 Jul 2009 22:29:39 +0200 Message-ID: Subject: Re: [c3 monitoring] Cache overview To: dev@cocoon.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/7/24 Dariusz =C5=81uksza : > 2009/7/21 Dariusz =C5=81uksza : >> On Tue, Jul 21, 2009 at 1:03 PM, Reinhard P=C3=B6tz= wrote: >>> Simone Gianni wrote: >>>> Hi Dariusz, >>>> I had a look at your patch. I see the method "listKeys", with the >>>> description "Removes all cached data". I think this is an error, looki= ng >>>> at the source it lists cache key names, and does not remove them, whil= e >>>> the "clear" method does that. >>>> >>>> Apart from this small error, regarding your question, I'm trying to >>>> figure out what a user will want to see when checking the cache. >>>> >>>> I'm brainstorming here, trying to paint a big picture, probably the re= al >>>> features will be much smaller, but this could provide you ideas and at >>>> the same time help identify which ones are most important. >>>> >>>> I can think of three possible scenarios : >>>> - While developing, they see something they don't expect to see, and >>>> they go check if there is some cached data in the way. >>>> - While optimizing the application, they go check what happens in the >>>> cache, if/how they are wasting RAM by caching too much or wasting CPU = by >>>> not caching enough. >>>> - At runtime, they could access it to see what's going wrong, to recov= er >>>> some ram, to clear everything if they just published something really >>>> important and they want it to appear now. >>>> >>>> Given these three scenarios, these are things that may be useful to se= e >>>> via JMX, but I don't know which of them are actually achievable or >>>> already there, so this is an "abstract" POV : >>>> - The component that stored that entry (it's part of the name already >>>> for ComponentCacheKey) >>>> - Which "pipeline" I'm referring to, so that if it's not working >>>> properly I can check if there is cached stuff. >>> >>> In Cocoon 2.x, a pipeline can have and ID attribute. For the purpose of >>> drilling down caching entries we could introduce it in 3.0 too. (I've >>> always wondered about the use case for pipeline ids ...) >>> >> >> Thanks for that tip I'll look on this ASAP ;) >> > > For our needs every pipeline should have an id parameter, from one > hand it is very good solution because we get simple way how to divide > and present cache entry's on JMX and on the other hand I'm not quite > sure that we can require that parameter for every pipeline and user even = if he > don't use monitoring module > > What do you think ? > There is also third solution ... pipeline id parameter can be optional and we'll publish on JMX _only_ that cache entry's that belongs to pipeline that have set id parameter. This approach gives us additional configuration options and can reduce amount of data published on JMX. IMHO this is the best solution right now. --=20 Best regards Blog: http://luksza.org LinkedIn: http://www.linkedin.com/in/dariuszluksza