<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Tangling with the Template Cache</title>
	<atom:link href="http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/</link>
	<description>Music, Politics and Code</description>
	<pubDate>Sat, 26 Jul 2008 02:53:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: charlie arehart</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-47</link>
		<dc:creator>charlie arehart</dc:creator>
		<pubDate>Thu, 01 Mar 2007 15:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-47</guid>
		<description>Thanks, Ashwin. Are you saying that the CF8 monitoring *will* offer this as a measure? That's good to hear. It doesn't help all those on 6 and 7 who really need a way to measure this statistic.

I've not yet tried it (reconfigured my machine and run tests to confirm) but since the CFSTAT still reports it, can anyone reading this indicate if they've seen it showing a value when indeed the template cache size is set lower than the number of templates requested?

I offer that (as well as the nod to CF8) to give some consolation to others who may come along here and ask/look for this. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks, Ashwin. Are you saying that the CF8 monitoring *will* offer this as a measure? That&#8217;s good to hear. It doesn&#8217;t help all those on 6 and 7 who really need a way to measure this statistic.</p>
<p>I&#8217;ve not yet tried it (reconfigured my machine and run tests to confirm) but since the CFSTAT still reports it, can anyone reading this indicate if they&#8217;ve seen it showing a value when indeed the template cache size is set lower than the number of templates requested?</p>
<p>I offer that (as well as the nod to CF8) to give some consolation to others who may come along here and ask/look for this. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashwin</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-46</link>
		<dc:creator>ashwin</dc:creator>
		<pubDate>Thu, 01 Mar 2007 08:23:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-46</guid>
		<description>For CF 8, need I say - server monitoring? ;-)

As to why it's not there, I don't have a clue. Perhaps just one of those things that were dropped as we went from CF 5 to MX.</description>
		<content:encoded><![CDATA[<p>For CF 8, need I say - server monitoring? <img src='http://blogs.sanmathi.org/ashwin/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
As to why it&#8217;s not there, I don&#8217;t have a clue. Perhaps just one of those things that were dropped as we went from CF 5 to MX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charlie arehart</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-45</link>
		<dc:creator>charlie arehart</dc:creator>
		<pubDate>Thu, 01 Mar 2007 08:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-45</guid>
		<description>Ah, thanks for that clarification. Ok, so it does them seem we need a way to know when such pops are happening. That counter was the way before. Any thoughts on why it's not there? And if an oversight, might it be put back in 8? :-)</description>
		<content:encoded><![CDATA[<p>Ah, thanks for that clarification. Ok, so it does them seem we need a way to know when such pops are happening. That counter was the way before. Any thoughts on why it&#8217;s not there? And if an oversight, might it be put back in 8? <img src='http://blogs.sanmathi.org/ashwin/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashwin</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-44</link>
		<dc:creator>ashwin</dc:creator>
		<pubDate>Thu, 01 Mar 2007 06:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-44</guid>
		<description>On the contrary, Charlie, the template cache is most definitely popped. The soft cache can grow only as large as the JVM will allow it to; templates that need to get compiled beyond the limits of the soft cache will trigger a cache pop of an older template so they can get in.

The more common case is that the soft cache will grow in size initially, and then shrink whenever the JVM needs memory, causing cache pops again.

Increasing the perm size, as Brandon suggests in his presentation, is probably a good idea if you're sizing your template cache up. As he also points out, this is a trial and error kind of thing - it is also highly dependent on the size of the templates, and hence the generated class files.

Oh, and I'll see about getting a Wordpress plugin to automatically send out email for comments.</description>
		<content:encoded><![CDATA[<p>On the contrary, Charlie, the template cache is most definitely popped. The soft cache can grow only as large as the JVM will allow it to; templates that need to get compiled beyond the limits of the soft cache will trigger a cache pop of an older template so they can get in.</p>
<p>The more common case is that the soft cache will grow in size initially, and then shrink whenever the JVM needs memory, causing cache pops again.</p>
<p>Increasing the perm size, as Brandon suggests in his presentation, is probably a good idea if you&#8217;re sizing your template cache up. As he also points out, this is a trial and error kind of thing - it is also highly dependent on the size of the templates, and hence the generated class files.</p>
<p>Oh, and I&#8217;ll see about getting a Wordpress plugin to automatically send out email for comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charlie arehart</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-43</link>
		<dc:creator>charlie arehart</dc:creator>
		<pubDate>Thu, 01 Mar 2007 05:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-43</guid>
		<description>Thanks, but here's a more pertinent question: would it even matter? Now that I think of it, on rereading your entry, it seems possible that you're saying that the template cache is never popped, with the new soft cache you describe. So that would be the question to ask: can the template cache ever fill? If not, then there will never be a cache pop.

The real question, then, is simply how does one go about choosing the best size for the template cache? What measure do we have to know if we've made it too large or too small?

Also, Ashwin, can you configure your WordPress setup to enable us to choose to receive email notifications of new comments posted here? Since it asks for our email address I assumed it would, but I'm not finding that it does. Thanks
And I've seen other info (http://www.bpurcell.org/presentations/usergroups/ColdFusion_Performance_Tuning.pdf) to suggest that if one does increase it over the default of 1024 then one should also double the maxpermsize. Any thoughts on that?</description>
		<content:encoded><![CDATA[<p>Thanks, but here&#8217;s a more pertinent question: would it even matter? Now that I think of it, on rereading your entry, it seems possible that you&#8217;re saying that the template cache is never popped, with the new soft cache you describe. So that would be the question to ask: can the template cache ever fill? If not, then there will never be a cache pop.</p>
<p>The real question, then, is simply how does one go about choosing the best size for the template cache? What measure do we have to know if we&#8217;ve made it too large or too small?</p>
<p>Also, Ashwin, can you configure your WordPress setup to enable us to choose to receive email notifications of new comments posted here? Since it asks for our email address I assumed it would, but I&#8217;m not finding that it does. Thanks<br />
And I&#8217;ve seen other info (http://www.bpurcell.org/presentations/usergroups/ColdFusion_Performance_Tuning.pdf) to suggest that if one does increase it over the default of 1024 then one should also double the maxpermsize. Any thoughts on that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashwin</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-42</link>
		<dc:creator>ashwin</dc:creator>
		<pubDate>Wed, 28 Feb 2007 05:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-42</guid>
		<description>Charlie - I don't have an answer for your myself, since I haven't been around long enough. However, a quick poll in the team indicates that cache pops is probably not reported in Perfmon with CFMX.</description>
		<content:encoded><![CDATA[<p>Charlie - I don&#8217;t have an answer for your myself, since I haven&#8217;t been around long enough. However, a quick poll in the team indicates that cache pops is probably not reported in Perfmon with CFMX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charlie arehart</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-41</link>
		<dc:creator>charlie arehart</dc:creator>
		<pubDate>Tue, 27 Feb 2007 07:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-41</guid>
		<description>Ashwin, I just observed that while the cp/sec stat is indeed still reported by CFSTAT in CFMX 6 and 7, I was working with a client running CFMX 6 and we couldn't find it reported in his Perfomon's CFMX6 performance object. And I couldn't find it in my Perfmon's CFMX 7 performance object. Do you know, or can anyone else report, if this is a known limitation in CFMX and above? It's there in my CF5 performance object. Thanks.</description>
		<content:encoded><![CDATA[<p>Ashwin, I just observed that while the cp/sec stat is indeed still reported by CFSTAT in CFMX 6 and 7, I was working with a client running CFMX 6 and we couldn&#8217;t find it reported in his Perfomon&#8217;s CFMX6 performance object. And I couldn&#8217;t find it in my Perfmon&#8217;s CFMX 7 performance object. Do you know, or can anyone else report, if this is a known limitation in CFMX and above? It&#8217;s there in my CF5 performance object. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashwin</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-40</link>
		<dc:creator>ashwin</dc:creator>
		<pubDate>Fri, 08 Sep 2006 13:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-40</guid>
		<description>No whitepaper, as far as I know, but I believe you can find the necessary information in the "Configuring and Administering ColdFusion MX" book that comes in the box with CF.</description>
		<content:encoded><![CDATA[<p>No whitepaper, as far as I know, but I believe you can find the necessary information in the &#8220;Configuring and Administering ColdFusion MX&#8221; book that comes in the box with CF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Esher</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-39</link>
		<dc:creator>Marc Esher</dc:creator>
		<pubDate>Fri, 08 Sep 2006 11:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-39</guid>
		<description>Is there an official whitepaper that describes the cache behavior, i.e. demonstrating that CF doesn't actually access the .cfm file every time it is requested?

We're trying to move all of our code off of our webservers and onto a central location (SAN), but the network people aren't letting us because they claim it'll result in much increased network overhead since "the webservers will have to travel the network every time to fetch the file from the SAN".

Thanks.</description>
		<content:encoded><![CDATA[<p>Is there an official whitepaper that describes the cache behavior, i.e. demonstrating that CF doesn&#8217;t actually access the .cfm file every time it is requested?</p>
<p>We&#8217;re trying to move all of our code off of our webservers and onto a central location (SAN), but the network people aren&#8217;t letting us because they claim it&#8217;ll result in much increased network overhead since &#8220;the webservers will have to travel the network every time to fetch the file from the SAN&#8221;.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: monkeywoo</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/07/12/tangling-with-the-template-cache/#comment-38</link>
		<dc:creator>monkeywoo</dc:creator>
		<pubDate>Wed, 19 Jul 2006 17:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=32#comment-38</guid>
		<description>Bob Everland,

You can clear your template cache with some code like this:

			createObject("component","cfide.adminapi.administrator").login("ohnoyoudont");
			createObject("component","cfide.adminapi.runtime").clearTrustedCache();</description>
		<content:encoded><![CDATA[<p>Bob Everland,</p>
<p>You can clear your template cache with some code like this:</p>
<p>			createObject(&#8221;component&#8221;,&#8221;cfide.adminapi.administrator&#8221;).login(&#8221;ohnoyoudont&#8221;);<br />
			createObject(&#8221;component&#8221;,&#8221;cfide.adminapi.runtime&#8221;).clearTrustedCache();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
