ColdFusion10 offers multiple ways to generate runtime usage data. Performance Monitor integration, cfstat, and application logging allow administrators to gather important statistics on a sites usage. One additional tool is available with ColdFusion10 is Metric Service.
Enable Metric logging can through ColdFusion Administrator:
- Log in inside ColdFusion Administrator.
- Open the Debugging and Logging section.
- Click Debug Output Settings.
- Select Enable Metric Logging.
- Click Submit and restart ColdFusion.
The metrics logger writes data to metrics.log in the location {CF-HOME}/logs at the specified interval defined in Metric Frequency attribute. The default value is 60 seconds.
You can change value of Metric Frequency attribute from Debug Output Settings.
The Metrics log contains information of Maximum thread count, Current thread count, Current busy thread, Maximum processing time, Request count, Error count, Free memory, Total memory, and Active sessions.
The following example shows a log message generated with this format:
"Information","scheduler-0","05/10/12","16:56:15",,"Max threads: 150 Current thread count: 0 Current thread busy: 0 Max processing time: 0 Request count: 0 Error count: 0 Bytes received: 0 Bytes sent: 0 Free memory: 191346744 Total memory: 254607360 Active Sessions: 0"