0
I've been struggling with this issue for months now. Whenever my computer is turned on for 2-3 days straight, Windows Task Scheduler service starts to slowly eat up all of my 32 GB of RAM, and after exhausting those it eats up all 32 GB of the swap file memory as well. I only knew it was some service at one of the svchost.exe instances, but today I nailed it down to Task Scheduler when I was able to stop it with Process Explorer and everything went back to normal.
My question is: what exactly can cause Task Scheduler to do this? It's certainly NOT one of the programs that are scheduled because it doesn't stop to consume all memory when I close every single program and service except Task Scheduler itself.
An important note: when it does that and I open the Task Scheduler in mmc, there are always some tasks showing an error (Microsoft Antimalware and a couple of others). Those errors can be fixed by removing those tasks both from Windows registry and from %windir%\Tasks and then re-importing them with <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
lines removed. However, after some time those lines magically appear in the tasks again and they throw errors again.
P.S. I don't know if the fact that those lines get re-added is the cause of the memory leak. P.P.S. there are no tasks that I don't need. I only have Windows tasks and some third-party software tasks, which never caused this behavior previously.
You clearly have a task that is running or a task that is attempting to run, that is causing the behavior you describe. Have you tried to disable tasks you don't need? Do you have any custom tasks? Instead of submitting a comment, please edit your question, to include this vital information. – Ramhound – 2019-03-13T14:14:18.463
If it can't start some task for some reason, does it really have to eat up all ram instead of just showing some error in the event log? By the way, the event log doesn't have any task scheduler related items. – COOLak – 2019-03-13T14:20:05.653
@COOLak As RamHound said, have you tried to disable task you don't need? Do you have custom task? Do your task do a clean up? Sometimes when a task fails and you have a short schedule they will pile up, usually if they depend on resources which allows only one instance. Try to correlate the output of this powershell command
ps | get-object name, starttime
with the task schedules. – dmb – 2019-03-13T15:01:15.997@dmb I edited my question right after Ramhound left their comment. Don't you see? The edit answers two of your questions. And no, they don't do a cleanup. As for your advice, it returns
get-object is not recognized as the name of a cmdlet
. – COOLak – 2019-03-14T04:25:27.640@COOLak The edit wasen't reflected at the time I was writing this. In powershell try
ps | select name, starttime
if you doselect *
you can see the full list of properties to select. Sorry about theget-object
I was working on some project and got confused – dmb – 2019-03-14T11:47:06.977Tried disabling all tasks except the default ones that come with Windows. Task Scheduler still eats all RAM after a few days of the last reboot :/ – COOLak – 2020-02-04T18:41:22.987