Author Topic: CleanMem Pro Advanced Monitor Rules and Chrome  (Read 6876 times)

0 Members and 1 Guest are viewing this topic.

Offline Fingerblasta

  • PcWinTech Jr. Member
  • Join Date: Apr 2013
  • Posts: 3
  • Karma: 0
CleanMem Pro Advanced Monitor Rules and Chrome
« on: April 28, 2013, 03:15:20 AM »
Hello,
I was wondering if there was anyway possible to set a rule using the advanced monitor to "kill" Chrome Process Strings once they reach a certain mb usage, but without "killing" the actual browser (which is 95% of the time is using the most memory). Now, if you're wondering why in the hell I might be asking haha, is because I generally wind up with 30-50 tabs open simultaneously(I have ADD  :wink:) and end up using chromes task manager to kill some of the processes. I've tried a few chrome apps/extensions, such as 'The Great Suspender', but end up using more mem and figured I'd ask considering I'm already using CleanMem's rules to autoclean "chrome.exe" as it is... If there were just some way to distinguish between the actual 'main browser insta-crash upon process termination', the GPU/Flash Processs, and tabs/groups of pages... Oh and between extensions would also be nice if possible(although while constantly being cleaned wouldn't break the "kill" barrier).

PcWinTech.com Forums

CleanMem Pro Advanced Monitor Rules and Chrome
« on: April 28, 2013, 03:15:20 AM »

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: CleanMem Pro Advanced Monitor Rules and Chrome
« Reply #1 on: April 28, 2013, 03:22:11 PM »
The API that CleanMem uses only allows it to specify which process ID to clean. So only running processes can be cleaned up :wink:

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Fingerblasta

  • PcWinTech Jr. Member
  • Join Date: Apr 2013
  • Posts: 3
  • Karma: 0
Re: CleanMem Pro Advanced Monitor Rules and Chrome
« Reply #2 on: April 28, 2013, 04:35:46 PM »
So in other words, not possible? =( I'm also guessing that even if I asked about whether or not CleanMem rules could be set up in order to target specific PID numbers rather than names, that Chrome probably assigns random ass PID numbers to each process thread (or is it string? w/e lol) as it's created, right? *sigh*

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: CleanMem Pro Advanced Monitor Rules and Chrome
« Reply #3 on: April 28, 2013, 05:03:22 PM »
Windows assigns the pid and they change every time you open a process. So that is why I have the rules target process name instead :wink:

I have to double check, but I think I have it set to clean the process that has hit the memory limit you set in the rule and not all of them with the same name. I cant remember how I have it set, I have to double check the code :-)

Shane

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Willy2

  • PcWinTech Full Member
  • **
  • Join Date: Jul 2010
  • Posts: 280
  • Karma: 7
Re: CleanMem Pro Advanced Monitor Rules and Chrome
« Reply #4 on: April 28, 2013, 11:23:00 PM »
Yes, the AM only cleans the process that hits the memory limit. Take e.g. "Svchost.exe". On my Win 7 system it's not unusual to have 10 of these process running at the same time. But only one "Svchost.exe" process very regularly (say every 15 minutes) exceeds the 100 MB memory usage limit. And then only that process gets regularly cleaned by the AM.

Chrome starts A LOT OF processes.
http://www.howtogeek.com/124218/why-does-chrome-have-so-many-open-processes/

Perhaps the best solution is to set the memory limit very low. E.g. 1 or 2 MB.


Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: CleanMem Pro Advanced Monitor Rules and Chrome
« Reply #5 on: April 29, 2013, 12:11:26 PM »
There you go, you can use the advanced monitor to kill the chrome exe when it hits the memory limit you set.

Of course not sure if killing it is what you want but try it out :-)

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

PcWinTech.com Forums

Re: CleanMem Pro Advanced Monitor Rules and Chrome
« Reply #5 on: April 29, 2013, 12:11:26 PM »