Are you sure that your cfml engine debugging is off? That can cause a lot of 
overhead. Yeah, you're right that the slowness could be anything - you could 
see if it is caching my turning on the M2 logger and seeing the timing outputs.

How many items are in the cache approximately (active elements)? Large 
structures tend to get slower as they grow in size. Wondering if that has 
anything to do with it. Also, if you do have a lot of elements in one cache - 
you could define multiple caches which could give you more granular control. I 
usually just group like items in caches - products one, general "static" stuff, 
etc.


-----Original Message-----
From: Derrick Jackson <[email protected]>

Date: Tue, 23 Jun 2009 20:23:41 
To: <[email protected]>
Subject: [Mach-II] Re: M2/Dashboard - Caching


I am using time based cache:

<property name="Caching" type="MachII.caching.CachingProperty">
            <parameters>
                <parameter name="defaultCacheName" value="default" />
                <parameter name="default">
                    <struct>
                        <key name="type"
value="MachII.caching.strategies.TimeSpanCache" />
                        <key name="scope" value="application" />
                        <key name="timespan" value="29,0,0,0" />
                        <key name="cleanupIntervalInMinutes" value="3" />
                    </struct>
                </parameter>
            </parameters>
        </property>

Almost all events are cached using an alias.  Right now the cache ratio is
85.31%.  The cache scope is set to the application scope.  I noticed the
pages even while cached were coming back to the browser extremely slow
sometimes.  Things seem to be picking up and getting better.  Would you
reccomend having a defined cache for each of the aliases I have or is using
the default enough?

I'm looking at my code now to see if there is any Javascript that can be
remove or combined.

On Tue, Jun 23, 2009 at 3:12 PM, Peter J. Farrell <[email protected]> wrote:

>
> Well, there will always be misses, but it depends on how aggressive you
> are trying to cache stuff (length of time if using a time based caching
> strategy).  The first request for a cached item will always be counted
> as a miss.  So there will always be some misses even when using a
> timespan cache with the cache time set to "forever".
>
> What is your cache ratio in the dashboard at?  You have to let your
> application run under some load for a few hours to get a better idea of
> the cache ratio is really at.  Anything above 90% is considered really
> good and optimal.  Above 70% is good.  Above 50% is marginal.  Anything
> below 50% is not great.  If you could share some of the stats and your
> cache strategy settings, that would help.
>
> You can get a better cache ratio by changing how you cache your items
> (application/server versus session scoped items) and your cache strategy
> settings.
>
> .pjf
>
> Derrick Jackson said the following on 06/23/2009 06:12 AM:
> > I'm using the M2 Caching Strategy and when viewing the stats in the
> > Dashboard I notice there are a lot of "misses".  Does this mean that
> > M2 is having trouble getting to the cached data when called for or is
> > it a mix of that and calling the page for the first time?
> >
> > >
>
>
> >
>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to