Killing hung, frozen or zombie programs

As a web developer, I’m often doing new (and interesting) things to stretch the boundaries of the browser. Sometimes, in doing so, the browser can hang or freeze, remaining in a state that makes it unresponsive.

Here are a few simple methods to force-close the browser on Windows and Linux, they can be expanded for other software executables as needed.

Windows:
taskkill /f /im iexplore.exe
taskkill /f /im firefox.exe
taskkill /f /im chrome.exe
taskkill /f /im safari.exe

Linux/Unix:
for i in `ps -A | grep firefox | awk '{print $1}'`; do kill -9 $i; done

MSIE Launch Browser Windows in a Separate Process…

This is often troublesome. and occasionally occurs in newer versions of MSIE. This option in MSIE4 and later specifies whether a new process is created for each instance of Internet Explorer that you start. With this setting disabled, all instances of Internet Explorer and Windows Explorer that you start are run in the same process. When you enable this setting, you can prevent one instance of Internet Explorer or Windows Explorer from effecting other instances if it stops responding (hangs); however, if you enable this setting, additional resources are consumed and Internet Explorer’s performance may be affected.

Generally, this option is available on the Internet Control Panel, Advanced tab, but sometimes it isn’t visible. If this is the case, a simple registry change can manually control it.

WARNING: this is a registry change, so please be careful!

  • HKEY_LOCAL_MACHINE/software/microsoft/windows/currentversion/explorer/BrowseNewProcess
  • HKEY_CURRENT_USER/software/microsoft/windows/currentversion/explorer/BrowseNewProcess

BrowseNewProcess = Yes

References:

Cheers.