MozillaZine

Total memory usage

User Help for Mozilla Firefox
siffemoz
 
Posts: 80
Joined: January 29th, 2016, 4:36 pm

Post Posted December 10th, 2017, 2:39 am

Anyone know of a way to see the total amount of working memory (Task manager processes, not cache) FF uses without having to use a calculator? I don't find about:memory useful.

Reflective

User avatar
 
Posts: 2283
Joined: February 15th, 2007, 11:13 am

Post Posted December 10th, 2017, 3:00 am

Task manager ---> click Performance tab ---> click Open Resource Monitor link at the bottom and then in the next menu click the Memory tab.

siffemoz
 
Posts: 80
Joined: January 29th, 2016, 4:36 pm

Post Posted December 10th, 2017, 3:45 pm

Thanks Reflective, but that also shows me separate processes like in Task manager.

Ed1
 
Posts: 872
Joined: January 30th, 2005, 2:33 pm

Post Posted December 10th, 2017, 4:35 pm

Here's a recent similar thread:

viewtopic.php?f=38&t=3036196

therube

User avatar
 
Posts: 18312
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted December 12th, 2017, 8:09 pm

Heh.

Code: Select all
E:\RUBEN>TASKLIST /FI "imagename eq firefox.exe"  && echo.  && tasklist /fi "imagename eq firefox.exe" | sed s/,//g | gawk "{ sum += $5 } END { print sum }"


Code: Select all
Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
firefox.exe                   6328 Console                    2     42,460 K
firefox.exe                   4776 Console                    2    846,128 K
firefox.exe                   2792 Console                    2      9,464 K
firefox.exe                   2512 Console                    2  2,126,164 K
firefox.exe                   4468 Console                    2    237,856 K

3262072


(Now that is listing the 'Working Set' bytes. 'Private Bytes' could be, even substantially, different, in particular for the largest [2512] thread, 6,984,510 K in my case.)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

siffemoz
 
Posts: 80
Joined: January 29th, 2016, 4:36 pm

Post Posted December 15th, 2017, 9:17 pm

Thanks for the reply, Ed1. Got it working running Powershell command from a batch file:

Powershell file (totalff.ps1):
$p = (Get-Process Firefox -ErrorAction SilentlyContinue | Measure-Object -Sum WorkingSet).Sum / 1024
Write-Host "Total Firefox = "$p" K"

Batch file (totalff.bat):
@echo off
powershell -executionpolicy bypass "& "C:\execs\totalff"
pause

siffemoz
 
Posts: 80
Joined: January 29th, 2016, 4:36 pm

Post Posted December 15th, 2017, 9:19 pm

Thanks for the reply, therube. Had to go get sed and gawk for Win, now runs from batch file:

cd "C:\Program Files (x86)\GnuWin32\bin"
TASKLIST /FI "imagename eq firefox.exe" && echo. && tasklist /fi "imagename eq firefox.exe" | sed s/,//g | gawk "{ sum += $5 } END { print sum }"
pause

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 15 guests