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

  • SEARCH
  • Home
  • 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

So, I'm rolling-my-own Java-based application server (because Glassfish, et al, aren't for non-web-based apps),
We're trying to get some usage metrics on a VB6 application that we are
I'm learning more about javascript OOP by rolling my own console.log variant with some
I'm rolling my own PeoplePicker, using the following code to get all my contacts:
This is probably just some simple beginner's mistake, but I just can't seem to
I see a number of posts talk about rolling your own LINQ to SQL
I'm looking for a good Wizard library in Flex before rolling my own. The
Rolling comments inside a log4net file. Is it possible to roll the data inside
I am trying to calculate a rolling mean using plyr. The data is at
I would like to add a small dice-rolling effect to my Javascript code. I

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.