TransWikia.com

How to stop Windows 10 from suspending a particular application (RStudio)

Super User Asked by Amie on March 2, 2021

First off, I wasn’t sure if this was a question better suited to Super User or one of the other communities like Cross Validated, so please let me know if this is in the wrong place.

I’m having an issue where while I am actively using RStudio, Windows 10 suspends the Rstudio App process and RStudio freezes.

This shows up in Task Manager with the new little green leaf symbol as seen here. The leaf icon shows up in Task Manager next to Apps/Background processes that have at least one sub-process that is suspended, which you can see when you expand the list on the process tab of Task Manager OR if you look at the blue/ ‘Status: Suspended’ processes in Resource Monitor.

I’ve looked for info on whether other people are having the same issue specifically with RStudio and didn’t find anything useful. I also searched for general information on how to tell Windows 10 not to suspend a particular app.

  • Most people seem to search for info on these suspended processes
    because they aren’t able to kill a process once suspended.
    However, I’m not having any issues killing the process once its
    suspended, simply trying to avoid it being suspended in the first
    place
    .

  • Other general info I’ve found says that Windows suspends
    processes like Cortana, reminders, etc. that run in the background or
    are pre-launched, to save battery and/or resources. However, I am
    actively using RStudio when this happens so I’d really like to find a way to create an exception or exclude RStudio from apps that
    can be suspended this way.

Software Info:
I am using RStudio (Version 1.1.453 / R version 3.5.0 (2018-04-23) — “Joy in Playing”) with the ‘enhanced R distribution from Microsoft (Microsoft R Open 3.5.0, CRAN mirror snapshot taken on 2018-06-01) on Windows 10 (Version 10.0.17134 Build 17134).

A few more details:

2 Answers

Not sure if this helps anyone with similar issues, but I've had similar issues with other software (Qt and Java), and after reading a lot of advices to disable anti-virus software (I don't have any), found the culprit. In my case it was Acronis Active Protection. Not exactly an anti-virus, but something very similar. I usually turn it off right after installing Acronis, but either didn't do it this one time, or it turned back on after an update. After disabling it, processes no longer get suspended. Hope this helps.

Answered by Sergei Tachenov on March 2, 2021

https://www.autoitscript.com/forum/topic/177749-stopping-windows-10-from-auto-closing-programs-to-free-up-ram/

Sideways and sort of nuclear way of preventing app suspension but it seems to work.

-------------------------------Excerpted from Autoit ----------------------------------

"Jon Noooooooo! Jon Administrators

878 11,270 posts Posted October 2, 2015 (edited) Not tested but try:

Run gpedit.msc Computer Configuration -> Administrative Templates -> System -> Troubleshooting and Diagnostics -> Windows Resource Exhaustion Detection and Resolution. Configure it to just detect Edited October 2, 2015 by Jon"

Answered by Mike on March 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP