I can think of two things, Ajas. 

First, note that there is a softcache on top of the template cache. It's not
widely known. It was first documented back in 2006 by Ashwin Matthews, when
he was an Adobe engineer:
http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache
/

It's also since been documented, though only barely, in both the CF 8 and 9
docs:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=servermoni
tor_07.html
http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811
cbf364104-7fba.html

In both cases, they only mention it, so I added a link in the comments back
in 2009 to Aswhin's post. I doubt it will ever offer that level of detail.

You will also see some comments I had back and forth with Ashwin, to bring
out still more. It's quite important, yet many never notice it. There is no
hard limit on the soft cache size, it seems. Also, they don't get garbage
collected even when released, but instead only when there's high memory
pressure. The soft cache is a JVM thing, and you can dig around to find more
on that.

There's also one other possible explanation for what you're seeing: I'm
pretty sure I've seen that if you change the size of the template cache
(raise or lower it), the Server Monitor count of files in the template cache
will NOT go down but instead will go UP, which would be confusing and
contradictory. I recall concluding that the change was indeed causing the
template cache to be cleared, but again sadly these soft cache entries are
not released, so the count grew well beyond what seemed should be the limit.

Both of these can definitely make the template cache count less than
reliable. It's a reasonable starting point. (Note also that the template
cache hit ratio may also be unreliable, if what I've seen from the query
cache hit ratio is proof. But that's a thread for another day, if anyone's
interested.)

 

/charlie arehart
char...@carehart.org

Providing fast, remote, on-demand troubleshooting services for CF (and
CFBuilder)
More at http://www.carehart.org/consulting

 

 

From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Ajas Mohammed
Sent: Tuesday, September 20, 2011 2:14 PM
To: discussion@acfug.org
Subject: [ACFUG Discuss] CF admin template cache vs monitoring template
cache

 

We are on CF 9 Ent on Window 2003 server. The CF admin template cache is set
to 1024 but when I looked at CF built in monitoring tool, the template cache
shows the number as 1405.

If I understand correctly, the CF admin setting drives how many templates
can be cached. I am I missing something here?

<Ajas Mohammed />




-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to