How to find CPU consuming tabs (sth like Chrome task manager)

Support and discussions for the x86/x64 Linux version of Pale Moon and specific Linux distribution questions related to the browser.

Moderator: trava90

Forum rules
If your question is about general use of the browser and not specific to Linux, then please use the General Support board.
Locked
Black_Fox

How to find CPU consuming tabs (sth like Chrome task manager)

Post by Black_Fox » 2016-02-15, 10:33

Palemoon recently started to use 25% of my CPU (= 2 threads) instead of the usual 1-2 percent. How can I find which tab/addon causes this? I can see that plugin-container process consumes 0%, all consumption is directly by palemoon process. I tried disabling various extensions and closing various tabs, then restarting the browser, but the results are inconclusive and it's not realy practical with the amount of tabs/addons that I have open.
Is there a way to see CPU consumption per tab or per extension, or to narrow it somehow? I'm running 26.0.3.

Black_Fox

Re: How to find CPU consuming tabs (sth like Chrome task manager)

Post by Black_Fox » 2016-02-15, 12:40

Tried to stop the browser, but even a minute after closing all windows it continued consuming CPU, usually it closes within a few seconds. Tried attaching gdb, but not sure how much useful information this provides.
Backtrace:
(gdb) bt
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x00007f8b1ae0a7d5 in PR_Wait () from /opt/palemoon/libnspr4.so
#2 0x00007f8b17f86298 in ?? () from /opt/palemoon/libxul.so
#3 0x00007f8b17f87492 in ?? () from /opt/palemoon/libxul.so
#4 0x00007f8b17f59e8e in ?? () from /opt/palemoon/libxul.so
#5 0x00007f8b17f87c97 in ?? () from /opt/palemoon/libxul.so
#6 0x00007f8b17f88b54 in ?? () from /opt/palemoon/libxul.so
#7 0x00007f8b17f5de0a in ?? () from /opt/palemoon/libxul.so
#8 0x00007f8b1723c1d3 in ?? () from /opt/palemoon/libxul.so
#9 0x00007f8b172404fe in ?? () from /opt/palemoon/libxul.so
#10 0x00007f8b17240679 in XRE_main () from /opt/palemoon/libxul.so
#11 0x0000000000403139 in _start ()
This is on Ubuntu 14.04.3. Should I move it into the Linux section or is this a multiplatform issue?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: How to find CPU consuming tabs (sth like Chrome task manager)

Post by Moonchild » 2016-02-15, 13:43

Moved to the Linux board.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1627
Joined: 2013-05-20, 18:19
Location: Earth
Contact:

Re: How to find CPU consuming tabs (sth like Chrome task manager)

Post by trava90 » 2016-02-16, 03:08

Unable to reproduce on Manjaro or Mint. Perhaps try a new profile to determine if an extension or setting is the culprit.

Black_Fox

Re: How to find CPU consuming tabs (sth like Chrome task manager)

Post by Black_Fox » 2016-02-24, 23:29

Seems that either updating Pale Moon and/or lowering the version of Privacy Badger extension to the one recommended at Pale Moon addons portal may have helped, at least there have been no weird CPU usage spikes since.

So, is there generally any kind of task manager functionality/switch/extension which would help me next time I experience something like that?

Locked