topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 8:34 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: how to kill / restart Google Chrome?  (Read 14027 times)

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
how to kill / restart Google Chrome?
« on: October 07, 2009, 10:50 AM »
Hi,

I really like Google Chrome, the only thing I couldn't figure out is how to quickly kill* / restart it... since it uses lots of processes (to prevent itself from going down completely when a tab freezes) I can't just kill one process like I could with Firefox.

Any ideas?

*to free up some needed memory

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #1 on: October 07, 2009, 01:53 PM »
Maybe you can talk f0dder into writing a "Trim-ChromeOnly-Memory"?
It would by far be the fastest way to free some memory.
If not, you can use his TrimAll:

---
(...) If you need free RAM, don't overlook the brand new trimall by f0dder

Here you go :)  "trimall.exe" automatically trims all processes, has no GUI or status indication or whatever (thus the small size). It still won't trim system processes, and on a multi-user system it will probably only trim other people's processes if you have an administrative user account.


Direct link: https://www.donation...=2794.0;attach=17116


It will free up a lot of memory in less than 2 seconds!

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #2 on: October 07, 2009, 02:53 PM »
Keep in mind that trimming is a pretty silly thing, since it does nothing that Windows itself won't do when it's finally necessary to do so - unused RAM is wasted RAM, and premature working-set trimming will most likely just put stuff in your pagefile unnecessarily.

As for killing chrome, perhaps SysInternals' "pskill" utility, which can kill processes from the commandline based on partial process name?
- carpe noctem

bgd77

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 203
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #3 on: October 09, 2009, 01:18 AM »
You can use Process Explorer, also from SysInternals, instead of Task Manager. In Process Explorer, Chrome has a "parent" process and each opened tab appears as a "child" process of this "parent" process. You can completely kill Chrome by killing the "parent" process. There is also an option, "Kill the Process Tree", but it seems it is not necessary in this case.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #4 on: October 09, 2009, 01:41 AM »
You can use Process Explorer, also from SysInternals, instead of Task Manager. In Process Explorer, Chrome has a "parent" process and each opened tab appears as a "child" process of this "parent" process. You can completely kill Chrome by killing the "parent" process. There is also an option, "Kill the Process Tree", but it seems it is not necessary in this case.
Hm, that must be the Chrome child processes doing some "uh oh my parent is dead" checking, then - child processes normally aren't killed by terminating the parent.
- carpe noctem

bgd77

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 203
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #5 on: October 09, 2009, 02:18 AM »
Or the parent process is saying to the child processes: "I made you, I kill you".

Anyhow, the "Kill the Process Tree" option would be an alternative if this would not work.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #6 on: October 09, 2009, 02:20 AM »
Or the parent process is saying to the child processes: "I made you, I kill you".
Doesn't get a chance to do that if you kill it from taskmgr/procexp, since it gets forcefully shut down with TerminateProcess() :)
- carpe noctem

bgd77

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 203
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #7 on: October 09, 2009, 02:43 AM »
Ok, I'm no expert in this, so your explanation is the right one. Does this mean that the child processes are created in a special way? Or maybe the child processes know who their parent is and constantly interrogate it in order to see if it is still working?

Returning to the original question, maybe brotherS could tell us if he has found what he is looking for in the posts above. :)

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #8 on: October 10, 2009, 05:04 AM »
Thanks guys! I used the Process Explorer ages ago, sounds like that could work.

Before I test it (and lose some or all of my opened tabs - I'm using Chrome's "open all last opened pages again on program start" feature), would anyone be so kind and test it for me?  :)

Paul Keith

  • Member
  • Joined in 2008
  • **
  • Posts: 1,989
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #9 on: October 10, 2009, 10:43 AM »
@brotherS,

Well, I'm not knowledgeable with any kind of testing but you could just use Iron Portable or Chromium Portable and you should be able to have a replica Google Chrome without it touching your actual Google Chrome files.

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,778
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #10 on: October 10, 2009, 08:03 PM »
You can also use Mouser's Process Tamer to kill processes quickly.

bgd77

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 203
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #11 on: October 11, 2009, 12:39 AM »
Thanks guys! I used the Process Explorer ages ago, sounds like that could work.

Before I test it (and lose some or all of my opened tabs - I'm using Chrome's "open all last opened pages again on program start" feature), would anyone be so kind and test it for me?  :)

I tested it and it works. The last tabs that were opened are restored. When I open Chrome, it detects that it was not shut down properly, and gives you the option to open the browser with those tabs. I'm using version 3.0.195.25

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #12 on: October 13, 2009, 07:20 AM »
You can use Process Explorer, also from SysInternals, instead of Task Manager. In Process Explorer, Chrome has a "parent" process and each opened tab appears as a "child" process of this "parent" process. You can completely kill Chrome by killing the "parent" process. There is also an option, "Kill the Process Tree", but it seems it is not necessary in this case.
Thanks guys! I used the Process Explorer ages ago, sounds like that could work.

Before I test it (and lose some or all of my opened tabs - I'm using Chrome's "open all last opened pages again on program start" feature), would anyone be so kind and test it for me?  :)

I tested it and it works. The last tabs that were opened are restored. When I open Chrome, it detects that it was not shut down properly, and gives you the option to open the browser with those tabs. I'm using version 3.0.195.25
This is the solution! Works nicely!

Thanks for your help!

bgd77

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 203
    • View Profile
    • Donate to Member
Re: how to kill / restart Google Chrome?
« Reply #13 on: October 13, 2009, 07:34 AM »
You're welcome.  :)