Solved

Get memory status

Posted on 2014-04-05
6
388 Views
Last Modified: 2014-04-07
Hello Experts

I would like to be able to monitor memory status through WMI, or some other programmatical solution that will alert me to problems with the actual memory.

My main hope was through WMI. I have tried MEMPHYSICAL GET STATUS through WMIC, along with several other WMI classes, including accessing them via .NET. So far, all my results are empty.

Can someone please provide a working example where I can run it to see that my memory is "OK" or "bad" etc. To put this in context, the functionality will go into an application that gives the IT team a quick snapshot of server health and activity.

Many thanks
0
Comment
Question by:gcz
6 Comments
 
LVL 19

Expert Comment

by:n2fc
Comment Utility
Not sure that is useful, as most any physical memory issue would likely cause a blue screen death scenario...

See the following utility (RAM Map) for an alternative:
http://technet.microsoft.com/en-us/sysinternals/ff700229.aspx
0
 
LVL 34

Expert Comment

by:Dan Craciun
Comment Utility
As far as I know, ECC memory will self-correct errors, and, as n2fc said, if it cannot correct errors Windows will blue-screen to avoid corruption.

HTH,
Dan
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 250 total points
Comment Utility
In .NET, you can use System.Diagnostics.PerformanceCounter objects.

You can instantiate them yourself if you want to, but an easy way to do it, and at the same time explore what information they can give you is to:

1. Create a Windows Form
2. Open the Server Explorer (Ctrl+Alt+S)
3. Select the computer under the Servers
4. Then Performance Counters... Memory
5. Chose the information you want to check and drag it on the Form.

This will create a PerformanceCounter object for the item you selected. Create as many as you need. You can use them in your code with something like the following:

Debug.WriteLine(PerformanceCounter1.CounterName & ": " & PerformanceCounter1.RawValue)

Open in new window

0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 53

Expert Comment

by:McKnife
Comment Utility
You should stress if you are talking about the memory load or errors the memory creates.

If load, look at perfmon. perfmon can constantly monitor your system and you can define actions (tasks) to happen if memory load increases (let's say) above 90% for (let's say) more than 5 minutes.

If you mean memory errors: if server memory (ECC) is used, the system can be setup to notify you about errors that occur. Is ECC in use?
0
 
LVL 1

Author Comment

by:gcz
Comment Utility
Thank you for the responses.

I mainly want to focus on errors at the moment. About a year ago we had one of our Dell servers report a memory error problem via its mini digital front panel (ECC on all servers). It functioned fine while we bought new memory and afterwards the error went. More diagnostiics were done than "warning light is on = bad", but it was a starting point.

James that is what I was looking to do later on. The priority right now is guarding against failing hardware not being noticed.
0
 
LVL 53

Assisted Solution

by:McKnife
McKnife earned 250 total points
Comment Utility
You should consult your manuals. As you can see googling https://www.google.com/search?q=notifies+about+memory+ecc+errors&sourceid=ie7&rls=com.microsoft:en-US:IE-Address&ie=&oe=#q=notification+about+memory+ecc+errors : it depends on what manufacturer's software you use how you are notified of ECC RAM errors.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Communication between departments might not happen in two different languages, but they do exist in two different worlds. With different targets and performance goals the same phrase often means something completely different to each party. Learn ho…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now