[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 452
  • Last Modified:

FIrefox holding memory

How can you force Windows XP to release the Memory Usage that Firefox tends to hold onto when you exit Firefox?  Just about every time I close Firefox but then I go back and try to open it, Windows tells me it is still running so I have to go into the Task Manager and End the Process so the memory usage is released.   Any advice would be greatly appreciated.
0
mikecharters
Asked:
mikecharters
  • 4
  • 3
  • 3
  • +2
1 Solution
 
Brian GeeCommented:
You will have to either wait until the firefox.exe process has fully finished closing out, or if you can't wait, go to the Task Manager to manually end the process immediately. Then you will find that you can relaunch Firefox afterward without issue.
0
 
Brian GeeCommented:
For instructions on killing the firefox.exe process from the Task Manager...

Right-click in the taskbar and choose Start Task Manager.
In the resulting Windows Task Manager window, go to the Processes tab, and then click the Image Name heading to sort alphabetically.
Find the firefox.exe process, select it, and then press the End Process button below.
0
 
Brian GeeCommented:
If you want an easier way to do the process above, we can create a batch file.

Paste the information below into a new Notepad document:

taskkill /IM firefox.exe

Save the Notepad document naming it close_firefox.bat to your Desktop.

Now when you close Firefox and it disappears but you know that Windows is still processing the close, you can run this batch file to force the firefox.exe to close immediately.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mikechartersAuthor Commented:
Hi yobri, Thank you that was quite exciting to implement as it worked perfectly.  Is there a way to link the .bat file to options or preferences within Firefox somehow so that when it is exited, the .bat is executed automatically?  

Regardless it is 10 times faster to have that on my desktop than going into the Task Manager multiple times per day to End the Process manually.  

I found in the past that I sometimes would wait a full 10 minutes but it seems that Firefox will not close itself all the time properly and hangs.   Occasionally I get the same thing with Outlook.exe.

Best regards, Mike
0
 
hmarcbowerCommented:
If you add the line to run Firefox to your batch file (before the taskkill, obviously :), you can then use the batch file to launch Firefox.  The batch file will wait for the program to close before continuing on, so you will have the "dos" box open while Firefox is open, but you can minimize it and ignore it.  When you close Firefox, the batch file will carry on and try to kill the process if it exists.  You might also put a pause in there so that it doesn't end Firefox prematurely.  Something like this:

@echo off
cls
echo Running Firefox...
"D:\Program Files (x86)\Mozilla Firefox\firefox.exe"
echo Waiting for Firefox to close...
REM 10 second delay
ping 127.0.0.1 -n 11 >NUL
echo Killing firefox.exe...
taskkill /IM firefox.exe
0
 
Brian GeeCommented:
If you wanted to just kill Firefox in one fell swoop (bypassing even the prompt about closing tabs, etc.) while keeping it simple, I would just add one parameter to the batch file like so:

taskkill /IM firefox.exe /f

Keep a shortcut of this batch file in the Quick Launch (by the Start Menu). Click it and Firefox closes, window and process... all of it.
0
 
QlemoC++ DeveloperCommented:
Maybe you should look more into the real issue here? Firefox hanging and remaining in memory is an error. I suppose you have issues with one of the Add-Ons. Try running Fx without any Add-Ons to check that.
Further, I tend to have Fx open all the time, at least with about:blank, if I use it more than once a day.
0
 
mikechartersAuthor Commented:
Hmm thank you qlemo, I will try that, it could very well be an add-on.  I tend to be in Firefox constantly but occasionally if I have too many tabs open I just shut it all down and start afresh.
0
 
QlemoC++ DeveloperCommented:
I'm not certain about whether that is managed by an add-on I'm using, but my context menu on tabs allows me to close all but the active tab.
0
 
mikechartersAuthor Commented:
Thanks, where do you find the context menu, I looked through all the options I could find.  Cheers.
0
 
QlemoC++ DeveloperCommented:
Probably it is this add-on allowing me to do that: http://piro.sakura.ne.jp/xul/_treestyletab.html.en
0
 
Jackie ManCommented:
You can also try Auto-Kill-Any-Process.to do the kill task job for the process of firefox, outlook...

http://www.softpedia.com/get/System/System-Miscellaneous/Auto-Kill-Any-Process.shtml
0
 
hmarcbowerCommented:
I tend to use Firefox primarily, and routinely leave it open for days at a time with upwards of 20 or 25 tabs (the treestyle tab addon is great).  Occasionally I'll notice it getting sluggish, check Task Manager and yep, it's eating up about a gig of memory.  Shutting it down does nothing, I have to kill the task manually.  It's possible that it's an addon, but even though I don't have a ton of them installed I use the ones I have installed frequently.  Easier just to kill the task once every few days for me.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 4
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now