High Memory utlization on win7 professional

Hi Experts,

I have a system that starts to consume high memory and it takes about 3 to 4 days before it stops to respond. Not sure what is causing it and I have rebuilt this system 2 times already with the same result. I want to do the following in the meantime.

I want some sort of a trigger setup that when the memory reaches 92% utilization the system should restart automatically. Please can someone tell me how to do that?

many thanks.
Habib ZakariaNetwork Solutions ArchitectAsked:
Who is Participating?
JohnConnect With a Mentor Business Consultant (Owner)Commented:
>>> have rebuilt this system 2 times already with the same result.

Windows 7 will run for months on end and remain a < 5% CPU when idle. So it is not a Windows 7 problem per se.

Since it takes days, consider uninstalling your Anti Virus and replacing it temporarily with Microsoft Security Essentials.

Also look to see if you have any legacy or non-mainstream software installed.

Finally, look to your drivers:  Update BIOS, Chipset, Audio Driver and Video driver. Upgrade your wired NIC driver (via Windows Update). Also make sure Service Pack 1 is installed.

.... Thinkpads_User
you should be ablt to run taskmgr and sort the processes tab by memory and see which program is on top or add the handles column and see which process is the culprit, you can also perform a scheduled resart say, every two days if you want.
Habib ZakariaNetwork Solutions ArchitectAuthor Commented:
its hard to find which process is eating the memory. This happens over 4 days time frame and when I come one day in the week I find the computer is ON but not responding to even Ctrl-Alt-Delete.

Is it possible for the computer to monitor the memory and when it reaches above 90% it just restarts it self.
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

you should see one of the processes using alot of memory or handles as time goes by, say like on the second or third day.
QlemoConnect With a Mentor Batchelor, Developer and EE Topic AdvisorCommented:
Go into "Reliability and Performance", "Data Collector Sets", "User Defined",
create a new collector set choosing the "Manual (Advanced)" option,
choose "Performance Counter Alert"
add "Memory\% Committed Bytes in Use"
set the alert threshold, like 90 for 90 %
choose "Save and close" to finish the first step of setup, but do not close yet.
The next steps are not confirmed to work, but it is how it should do:
Create a Task in Task Scheduler containing the reboot command: shutdown -r -t 5 -d 0:5
Don't define a trigger. Provide a proper name for the task.
Open the alert you defined earlier, located under the collector set,
choose the "Alert Task" tab
type in the task name.
You might want to name the collector set and the alert in it, so you know what they are for. Start the collector set.
If that works, you might want to create another collector sets containing several process and memory related performance counters, and trigger those with another alert and a lower overall memory threshold.
Habib ZakariaNetwork Solutions ArchitectAuthor Commented:
Guys I am not looking to troubleshoot it at the moment I have done all that you mentioned updating bios, chip set and ran all the windows update. I have something SVhost that keeps running which I can share on a screenshot but I just want this system to restart if it reached the maximum memory utilization. Is that possible to do or not? this is the most simple question I am asking?
Habib ZakariaNetwork Solutions ArchitectAuthor Commented:

Thank you for your input in creating alerts please let me know if there is any thing else I need to do but I will try the steps and get back to you
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
I want to emphasize that this (rebooting) is a emergency operation, and of course you should do your best to allow to drill down to the culprit. That is best done with a collector set recording key memory data, or creating memory consumption snapshots, with a lower threshold, as I have mentioned already.

The reboot threshold might be difficult to determine, as the machine will reboot too soon if too low, and not reboot if too high (and unresponsive already).
JohnBusiness Consultant (Owner)Commented:
A number of articles point to Windows Update as a cause for SVCHOST running high (99%) CPU.

Try turning off Windows Update (not even download) as a temporary measure while you are waiting for / trying other avenues. It will not hurt to disable Windows Update  for a few days. .... Thinkpads_User
David Johnson, CD, MVPOwnerCommented:
The task is to find the offending process that is consuming too much memory..  to have it reboot when resources are low is just a crutch.
taskmanager is your friend,
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
"Taskmanager is your friend" is a useless recommendation if you get to the server only once a week, and it is unresponsive then. Taskmanager is ok for ad-hoc checks, or if you can check manually on a regular base. "Performance Monitor is your friend" would hence fit better.
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
either way, perfmon or taskmanager you have to find the offending party and eliminate it. but just setting a task to reboot the system doesn't alleviate the problem it just masks it.

Firefox web browser has a known memory leak since version 4. It is better to find the offending app and restart that app than reboot the system.
It's probably not even memory utilization which is causing the system to stop responding.  Windows 7 is very good at managing that - yes it can get slow, but if it is truely unresponsive then I would consider handle counts or Free PTEs or something more along those lines.  There are lots of processes that will allocate lots of RAM temporarily but give it back if the system needs it, so a trigger to reboot at 92% memory utilization may result in many more reboots than required.
Habib ZakariaNetwork Solutions ArchitectAuthor Commented:
I rebuilt the workstation in the end and it looks good.

JohnBusiness Consultant (Owner)Commented:
Thank you, and thanks for the update. ... Thinkpads_User
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.