ColdFusion 11 Metrics Log NULL values

When tuning the IIS connector for Tomcat in ColdFusion 11, one of the resources said to look at is your “metrics.log” file.

This log is enabled in the ColdFusion Administrator and you can set the number of seconds for each entry.

What you want to see is something like this:

Max threads: 3000 Current thread count: 10 Current thread busy: 5 Max processing time: 420478 Request count: 1882 Error count: 0 Bytes received: 322099 Bytes sent: 55099992 Free memory: 18155664480 Total memory: 21045379072 Active Sessions: 1057

But what if you get this?

Max threads: null Current thread count: null Current thread busy: null Max processing time: null Request count: null Error count: null Bytes received: null Bytes sent: null Free memory: 19788897312 Total memory: 21045379072 Active Sessions: 142

A user notes this as a bug at https://bugbase.adobe.com/index.cfm?event=bug&id=3324126

“Asha K S” notes a fix and closed the bug as “Withdrawn – User Error”:

If you are using an external webserver like IIS or Apache – to enable metrics logging, you need to change the value of the “Connector Port” to AJP port. To know your AJP port, go to server.xml located at ColdFusion10\cfusion\runtime\conf and look for Connector element where protocol is “AJP/1.3” in the Debugging & Logging > Debug Output Settings page of ColdFusion Administrator

I worked this out with Wil Genovese to determine what this meant.

What we want to look for is the connector port for the “AJP/1.3” protocol in the file: {coldfusion install dir}/{instance dir}/runtime/conf/server.xml. For example “C:\ColdFusion11\cfusion\runtime\conf”.

The entry will look like this:

<Connector port="8012" protocol="AJP/1.3" redirectPort="8445" tomcatAuthentication="false" maxThreads="3000" connectionTimeout ="60000"/>

We want to take the connector port (8012 in this example) and put the value into the “Connector Port” input located under ColdFusion Administrator > Debugging & Logging > Debug Output Settings.

2014-12-31_1726

Note: You will see about the same issue when running CFSTAT. Most of the values will be at 0 until you update this connector port.

3/3/2016: See Charlie Arehart’s ColdFusion Troubleshooting Blog at http://www.carehart.org/blog/client/index.cfm/2016/3/2/cf_metrics_log_part1?utm_content=buffer2345d&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer for additional explanation.