views:

61

answers:

4

This will involve monitoring, coldfusion, sql server 2005, iis, coldfusion errors, hardware.

For example, I want to create graphical easy to understand charts showing coldfusion performance, but I want to know what data can i access underneath the system to get that?

Are there any resources for that?

Yes I know there is a balance from getting too much information that can affect server performance, and i hope to avoid that, but get essential limited info that can help us keep an eye on the server..

What kinds of things would you watch, and what ways are there to monitor them?

Yes, I know there are good server monitor tools for coldfusion, but we can't afford them. So we have to roll our own..

Thank You for your time..

+1  A: 

Have a look at cfTracker - and if it doesn't do what you want, maybe talk to David about helping to improve that project, instead of starting from scratch on another.

Peter Boughton
A: 

Hi there

There are a few things you can do to get performance info from CF for some simple graphs, and since your on a Windows platform you can use perfmon - the built-in Windows performance metrics gathering tool.

First you allow performance monitoring in CF Admin.

Then you can then set up a few perfmon tasks (using Reliability and Performance Monitoring tool under Administrative Tools) on the server. These can access ColdFusion Server metrics such as average request time, hits/sec etc. as well as standard Windows metrics such as memory used and CPU utilization.

It's all for free and if you write the results to a csv file, you can parse that every few minutes into a database table.

Once you have that you can use native CF processing such as <cfgraph> to graph the CF server performance.

I can also tell you that this perfmon approach will have a negligible affect on server performance.

I hope that helps.

Ciaran Archer
+1  A: 

I would suggest checking out Ray Camden's Article called Server Monitor API In Coldfusion 8 http://archive.networknewz.com/networknewz-10-20070625ServerMonitorAPIinColdfusion8.html

cfEngineers
I've read it...good article...I wish there was more info like that..
crosenblum
+1  A: 

User GetMetricData for monitoring your application in your CFML page. It's useful for only single-server installation.

Following coding is to GetMetricDate and Cfchart.

<cfset pmData = GetMetricData(“PERF_MONITOR") >

<cfchart chartheight="500" chartwidth="700" format="PNG" showlegend="yes">

<cfchartseries type="bar" seriescolor="##639526" paintstyle="light" colorlist="##ff8080,##ffff80,##80ff80,##0080ff,##ff80c0,##ff80ff,##ff8040,##008000,##0080c0,##808000">

<cfchartdata item="Page Hits" value="#pmData.PageHits#">

<cfchartdata item="Request Queued" value="#pmData.ReqQueued#">

<cfchartdata item="Database Hits" value="#pmData.DBHits#">

<cfchartdata item="Request Running" value="#pmData.ReqRunning#">

<cfchartdata item="Request TimedOut" value="#pmData.ReqTimedOut#">

<cfchartdata item="Bytes In" value="#pmData.BytesIn#">

<cfchartdata item="Bytes Out" value="#pmData.BytesOut#">

<cfchartdata item="Avg Queue Time" value="#pmData.AvgQueueTime#">

<cfchartdata item="Avg Request Time" value="#pmData.AvgReqTime#">

<cfchartdata item="Avg Database Time" value="#pmData.AvgDBTime#">

</cfchartseries>

</cfchart>

ppshein
very interesting and i like it. Also been playing with webcharts3d, and using ajax to update gauge dashboards...
crosenblum