JDEE8297
asked on
How do you get the available memory on a web server?
I want to be able to get the available memory on a web server, by going to the page in asp.net and displaying the value. I want to be able to test under WindowsXP before moving it to production, so any help on this would be appreciated. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ok good luck
ASKER
thank you again.
ASKER
This was my conversion
Dim ram As New System.Diagnostics.Perform anceCounte r("Memory" , "Available MBytes")
dim cpu as New System.Diagnostics.Perform anceCounte r()
cpu.CategoryName = "Processor"
cpu.CounterName = "% Processor Time"
cpu.InstanceName = "_Total"
Response.Write("Server Name - " & Environment.MachineName)
Response.Write("<br>")
Response.Write("Memory available - " & ram.NextValue().ToString & " Mb")
Response.Write("<br>")
response.Write ("CPU Used - " & cpu.NextValue().ToString & " %")
Thanks again for your help.
Dim ram As New System.Diagnostics.Perform
dim cpu as New System.Diagnostics.Perform
cpu.CategoryName = "Processor"
cpu.CounterName = "% Processor Time"
cpu.InstanceName = "_Total"
Response.Write("Server Name - " & Environment.MachineName)
Response.Write("<br>")
Response.Write("Memory available - " & ram.NextValue().ToString & " Mb")
Response.Write("<br>")
response.Write ("CPU Used - " & cpu.NextValue().ToString & " %")
Thanks again for your help.
Looks nice and easy, nice one.
ASKER