Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 985515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:10:37+00:00 2026-05-16T05:10:37+00:00

I am rolling my own simple web-based perfmon, I am not happy with some

  • 0

I am rolling my own simple web-based perfmon, I am not happy with some of the data I can get like cpu usage, which i use via a sql query. I am able to get memory usage just fine…I will attach a screenshot, so you can see what I currently have for my main/home/dashboard page.

I am currently using webcharts3d, which i am loving being able to use ajax, update the chart, and i have a dynamically updating dashboard. Yes of course I have to get only a few performance counter’s so in my desire to have a web-based performance dashboard i do not kill the server.

DECLARE @CPU_BUSY int, @IDLE int
SELECT @CPU_BUSY = @@CPU_BUSY, @IDLE = @@IDLE WAITFOR DELAY '000:00:01'
SELECT  (@@CPU_BUSY - @CPU_BUSY)/((@@IDLE - @IDLE + @@CPU_BUSY - @CPU_BUSY) *1.00) *100 AS 'CPU'

And all i get in results is 0.0000, so either the query is wrong, or i have very little cpu activity going on. Where as when I use my windows task manager.

Here is the code for gathering memory I am using, I do not claim credit for any of this code, I found it somewhere.

<cfscript>
      jRuntime = CreateObject("java","java.lang.Runtime").getRuntime();
      memory = StructNew();
      memory.freeAllocated = jRuntime.freeMemory() / 1024^2;
      memory.allocated = jRuntime.totalMemory() / 1024^2;
      memory.used = memory.allocated - memory.freeAllocated;
      memory.percentUsedAllo = (memory.used / memory.allocated) * 100;
</cfscript>

SysAdmin http://a.imageshack.us/img826/2575/sysadminscreenshot.png

So I am looking for more wmi or java or scripts to get cpu usage, and perhaps any other important server stat.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:10:37+00:00Added an answer on May 16, 2026 at 5:10 am

    How about using Coldfusion built-in function called, GetMetricData. It can help you to monitor your server performance like Coldfusion Admin. I’ve done it with bar of cfchart. If you wanna integrate with Web3Dcharts, you can.

    http://ppshein.wordpress.com/2010/08/04/getmetricdata-for-server-monitor/

    <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>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

...or am I stuck rolling my own XML chopping functions. I'd like to create
I'm looking into the idea of rolling out the web-based SSRS Report Builder to
I'm considering rolling my own, but just in case there's a good piece of
I'm rolling my own logger class, and want to represent the heirarchy of logs
Short of rolling your own. There has to be something out there. FlexLM/FlexNet is
I'm aware of the risks of rolling your own user authentication scripts, but I'm
Just dipping my toes into Linq2sql project after years of rolling my own SQL
We are slowly rolling out team foundation, and I have to get up to
We are rolling out a site for a client using IIS tomorrow. I am
I need to read in a rolling log file in .NET 3.5sp1. I'm wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.