hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Security and Technology Tutorials : Get CPUusage asp code.
Reply

Forum Jump

Get CPUusage asp code.

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2005, 02:23 AM
magpie magpie is offline
Newbie
 
Join Date: Jan 2005
Posts: 6
Question

Get CPUusage asp code.


Hi everyone,

Now I am trying to find out an ASP code can get the CpuUsage of my server (win2000 server). It looks like that:

<%
Set CpuInfo = Server.CreateObject("CpuDll.CpuUsage")
a = CpuInfo.CPU_Usage_Percent

Response.Write(a)
%>

I used Visual Basic to compile a DLL file to run above script, I did it from this script: CS_CPU_Monitor.zip (attach file below) and run regsvr32 CpuDll.dll to register it to my server.

But when I run above script, Response.Write(a) always returns: 100 , even at that time my server CPU is much lower than 100 percent.

Anybody had any experience in this or had any other methods to get the cpu usage in ASP code.

Looking forward to hearing from you

Thanks in advance.
Attached Files
File Type: zip cs_cpu_monitor.zip (90.7 KB, 241 views)


Last edited by magpie; 01-08-2005 at 02:30 AM.


Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Code Spaces Closes Shop After Hacker Deletes Customer Data Web Hosting News 2014-06-19 16:34:41
Web Hosting Sales and Promos Roundup - May 2, 2014 Web Hosting News 2014-05-23 16:54:17
Free WHD.global Registration with the WHIR Coupon Code Blog 2014-01-30 13:24:20
Web Hosting Sales and Promos Roundup - October 4, 2013 Web Hosting News 2014-05-23 15:42:45
DigiCert Launches Extended Validation Code Signing Certificates Web Hosting News 2012-08-15 15:30:28


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?