Ridiculous CPU load (50% to 99%)

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Arag_e

Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-22, 03:51

For a while now, I've had weird episodes with Pale Moon slowing down all of a sudden, and then my whole machine slowing down, to the point of Pale Moon deciding it needs 99% of the CPU to work which obviously grinds everything to a halt.

I had thought it seemed to spike randomly, but I have seen it happen often enough around the time I open Twitter that I think it's that website causing the problem. As I am typing this, PM is taking around 50% of the CPU despite it needing around 5% a few minutes ago with the exact same number of active windows and tags. All that's changed is that I browsed twitter (and watched a twitter video) and then closed the window.

The really annoying part is that the CPU load hogging persists even after closing down the new windows, and leaves me with no recourse but to kill the process altogether and restart it. That's probably what causes it to jump to 99%: whatever goes wrong, it sticks and adds onto itself.

Troubleshooting info:
Application Basics
------------------

Name: Pale Moon
Version: 27.4.2
Build ID: 20170821181241
Update Channel: default
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.9) Gecko/20100101 Goanna/3.2 Firefox/45.9 PaleMoon/27.4.2
OS: Windows_NT 6.1
Multiprocess Windows: 0/10 (default: false)
Safe Mode: false

Extensions
----------

Name: Adblock Latitude
Version: 4.0.1
Enabled: true
ID: adblocklatitude@addons.palemoon.org

Name: ChatZilla
Version: 0.9.92
Enabled: true
ID: {59c81df5-4b7a-477b-912d-4e0fdf64e5f2}

Name: Gmail Watcher
Version: 2.29
Enabled: true
ID: gmailwatcher@sonthakit

Name: Google Translator for Firefox
Version: 2.1.0.5.3
Enabled: true
ID: translator@zoli.bod

Name: MEGA
Version: 3.15.10
Enabled: true
ID: firefox@mega.co.nz

Name: Rikaichan
Version: 2.09.1-signed
Enabled: true
ID: {0AA9101C-D3C1-4129-A9B7-D778C6A17F82}

Name: Rikaichan Japanese-English Dictionary File
Version: 2.01.170301
Enabled: true
ID: rikaichan-jpen@polarcloud.com

Name: Tab Mix Plus
Version: 0.5.0.4
Enabled: true
ID: {dc572301-7619-498c-a57d-39143191b318}

Name: Download Status Bar
Version: 15.0.0.1
Enabled: false
ID: {6c28e999-e900-4635-a39d-b1ec90ba0c0f}

Graphics
--------

Adapter Description: AMD Radeon HD 5700 Series
Adapter Drivers: aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
Adapter RAM: 1024
Device ID: 0x68b8
Direct2D Enabled: true
DirectWrite Enabled: true (6.2.9200.22164)
Driver Date: 7-15-2015
Driver Version: 15.200.1062.0
GPU #2 Active: false
GPU Accelerated Windows: 10/10 Direct3D 11 (OMTC)
Subsys ID: 29901682
Vendor ID: 0x1002
WebGL Renderer: Google Inc. -- ANGLE (AMD Radeon HD 5700 Series Direct3D11 vs_5_0 ps_5_0)
windowLayerManagerRemote: true
AzureCanvasBackend: direct2d 1.1
AzureContentBackend: direct2d 1.1
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0

Important Modified Preferences
------------------------------

accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.download.importedFromSqlite: true
browser.download.manager.showAlertOnComplete: false
browser.download.manager.showWhenStarting: false
browser.newtab.url: http://start.palemoon.org/
browser.places.smartBookmarksVersion: 4
browser.sessionstore.resume_from_crash: false
browser.startup.homepage_override.buildID: 20170821181241
browser.startup.homepage_override.mstone: 3.2.2
browser.tabs.loadBookmarksInBackground: true
extensions.lastAppVersion: 27.4.2
gfx.direct3d.last_used_feature_level_idx: 0
image.http.accept: image/webp,image/jxr,image/png,image/*;q=0.8,*/*;q=0.5
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1506007390
places.history.expiration.transient_current_max_pages: 104858
plugin.importedState: true
privacy.sanitize.migrateFx3Prefs: true
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1504424046

Important Locked Preferences
----------------------------

Places Database
---------------

JavaScript
----------

Incremental GC: true

Accessibility
-------------

Activated: false
Prevent Accessibility: 1

Library Versions
----------------

NSPR
Expected minimum version: 4.15
Version in use: 4.15

NSS
Expected minimum version: 3.31.1
Version in use: 3.31.1

NSSSMIME
Expected minimum version: 3.31.1
Version in use: 3.31.1

NSSSSL
Expected minimum version: 3.31.1
Version in use: 3.31.1

NSSUTIL
Expected minimum version: 3.31.1
Version in use: 3.31.1

Experimental Features
---------------------

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35591
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Ridiculous CPU load (50% to 99%)

Unread post by Moonchild » 2017-09-22, 08:08

What would probably help here is if you could, when this CPU usage occures:
  1. Open up the devtools (F12)
  2. Switch to "Timeline" (if "Timeline" doesn't show, open up the devtools options first with the gear and enable it)
  3. Click the gauge button to start recording events
  4. Stop recording after a few seconds
Check the graph for things that take a lot of time. I don't think there's an easy way to share that data so you'll have to analyze it yourself and see if there's anything that's either repeated exceedingly quickly and constantly, or taking large chunks of time.
(A screenshot of the overall timeline might also help, if you're having issues pinpointing issues)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Latitude

Re: Ridiculous CPU load (50% to 99%)

Unread post by Latitude » 2017-09-22, 14:24

Off-topic:
Moonchild, is that built-in "Web Developer" or "The Pale Moon (codename Tycho) Web Developer Tools" [Firebug 1.0.0a1] - https://addons.palemoon.org/addon/devtools/"?

Are they different to each other?

Arag_e

Re: Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-22, 15:30

Moonchild wrote:A screenshot of the overall timeline might also help, if you're having issues pinpointing issues
Yeah, I'm not gonna be much help here, I have no idea what I'm looking at. This is while browsing twitter.
Attachments
Capture.JPG

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4279
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: Ridiculous CPU load (50% to 99%)

Unread post by Pallid Planetoid » 2017-09-22, 16:54

Run a few seconds --- Select "show in separate window" (example):
Devtools - timeline show in separate window.png
then "maximize" the window (example):
Devtools - timeline.png
and post screen-shot.
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35591
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Ridiculous CPU load (50% to 99%)

Unread post by Moonchild » 2017-09-22, 17:28

Obviously, you need to do this when you see the excessive CPU usage.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Arag_e

Re: Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-23, 03:26

I don't think you're gonna get anything useful out of this.

I tried different behaviors to try and isolate the spike, but nothing makes sense. I've stayed out of twitter but then had the spike while browsing a forum. Stayed out of THAT, and it just did it again while browsing pastebin of all bloody things.

This is what it looks like when replaying the actions I was doing when I noticed the spike. The actions in question were to go from a blank paste, to the "My Pastes" screen and then back to the blank. I'm not posting a recording of what happens when I'm idling in any of the pastebin pages because they're all blank. Nothing's happening unless I click on things.

The second image is what happened just a few moments ago. That spike is PaleMoon. It's now eating around 50-60 CPU when it was chugging at a stable 5-10% most of the time, and 15-20% while watching youtube videos.

Besides, I don't think it's related to ANY of the windows due to something else I've been noticing since awhile ago. Even after I close all the windows, PaleMoon still keeps running for around a minute, doing SOMETHING in the background until it finally decides to vanish from the task manager. During that time, after one of these spikes, it still keeps eating around 40% of the CPU, which matches nicely with the superfluous post-spike CPU usage. The actual windows I have open only eat around 5-10% of the CPU and selectively closing some or all only has a 5-10% effect on the CPU consumption, so that 40~% seems likely to be from whatever is causing the spikes, which keeps running even after every window is closed.
Attachments
1.JPG
2.JPG
2.JPG (43.64 KiB) Viewed 2099 times

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35591
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Ridiculous CPU load (50% to 99%)

Unread post by Moonchild » 2017-09-23, 07:44

Yeah there's no info to be had from the performance graph. Pity.
At least it confirms that it's not site-related then, but it's still a mystery what exactly is going on.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 4279
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: Ridiculous CPU load (50% to 99%)

Unread post by Pallid Planetoid » 2017-09-23, 09:25

How about using Sysinternals Process Explorer to see if this would help determine what is using up the CPU?

Example partial screen-shot of Process Explorer capturing some of the CPU usage higher than most:
Example of capturing some CPU usage.png
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
satrow
Forum staff
Forum staff
Posts: 1885
Joined: 2011-09-08, 11:27

Re: Ridiculous CPU load (50% to 99%)

Unread post by satrow » 2017-09-23, 10:27

Yes, Process Explorer might be of some help here, you might be able to pinpoint some types of issues by studying the graphs, etc. from the Properties sheet for Pale Moon, or whichever software is showing the excess CPU. It can also (main window, bottom pane) point you towards any 3rd party software/dlls loaded with Pale Moon, they may be triggering something heavy (security software being most common) - but I've also seen orphaned dlls that have caused sporadic issues.

Autoruns might also show up something loading in the background that you aren't aware of that might be having an impact.

https://www.howtogeek.com/school/sysint ... o/lesson1/ might help you use these tools to good effect.

Enabling Kernel activity in TaskMan might show whether the problem lies close to the Windows kernel (drivers, DirectX, maybe security software) or not.

Checking the disk I/O (via Resource Manager) for Pale Moon might find something like an unusual log belonging to a 3rd party software being written to...

Toa-Nuva
Fanatic
Fanatic
Posts: 200
Joined: 2015-06-04, 18:12

Re: Ridiculous CPU load (50% to 99%)

Unread post by Toa-Nuva » 2017-09-23, 16:30

Have you tried disabling your extensions? The issue might be caused by one of those.

In particular, I see you are using the "MEGA" extension. I remember that there was a similar issue a while ago which indeed was resolved by removing this extension: viewtopic.php?f=3&t=15257&hilit=mega

Arag_e

Re: Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-24, 22:44

I have no idea what you think you can get from this. It looks just like Task Manager's graph in another colour.

For the record, I was taking a shower when this happened. It happened earlier while I had PM minimized and was playing a game. It's completely divorced from any of my actions, PM will just suddenly decide it needs an extra 40% CPU to do hell knows what, even if it's idling. And the intervals this happens at seem to be increasing.

And no, it's not MEGA. It happens while that's disabled too.
Attachments
Capture.JPG

User avatar
satrow
Forum staff
Forum staff
Posts: 1885
Joined: 2011-09-08, 11:27

Re: Ridiculous CPU load (50% to 99%)

Unread post by satrow » 2017-09-24, 23:51

The bicolouration of the CPU graph indicates a very excessive CPU Kernel activity situation, more sensitive users would 'feel' 5-8% as being too much and almost everyone would feel the impact of 10-12%. Something hooked into Pale Moon is hogging your CPU to the tune of 28-30%.

Arag_e

Re: Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-25, 00:32

This is what the threads look like.
First image is what it looks like after starting up and loading my standard working session.
1.JPG
Second is after the CPU spike.
2.JPG
Third is what lingers for 30~40 seconds after I close down every window.
3.JPG
...oh, hey, I rebooted PM to take the first screenshot and it's back at 60% CPU already. Swell. That didn't last 1 minute. Have a fourth image, post-spike too.
4.JPG

User avatar
satrow
Forum staff
Forum staff
Posts: 1885
Joined: 2011-09-08, 11:27

Re: Ridiculous CPU load (50% to 99%)

Unread post by satrow » 2017-09-25, 00:59

I'm not familiar enough with browser internals to be able to get anything useful from that. Can you use the View menu and enable the lower pane and enable that to show the loaded .DLLs?

Sort by Company Name and list the 3rd party (not MS, Intel, AMD/ATI, Nvidia, Mozilla, Moonchild Productions or The ICU Project) .dlls?

Ignore those with no company names for the time being.

Arag_e

Re: Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-25, 02:38

These are the only ones not belonging to those companies. They're not the threads eating up CPU though, that's MSVCR120.dll and mspeg2vdec.dll.
Attachments
Capture.JPG

Arag_e

Re: Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-26, 01:20

Sorry for the double post, but now I'm running at 99%. Whatever the reason, MSVCR120.dll and mspeg2vdec.dll keep appearing in duplicate and hogging the CPU.

If you have no idea what to do, then please tell me so I can uninstall Pale Moon and look for an alternative, because at this rate not only is the browser useless, it's gonna cut the CPU's life short by overburdening it.
Attachments
Capture.JPG

John connor

Re: Ridiculous CPU load (50% to 99%)

Unread post by John connor » 2017-09-26, 05:38

I'm wondering if this is add-on related. Have you tried safe mode in PM? Also, process explorer could help narrow it down. Like what was mentioned already, something could be hooked into Pale Moon. You could try Auto Runs and make sure you don't have crap starting with your computer that shouldn't be.


https://docs.microsoft.com/en-us/sysint ... s-explorer

https://docs.microsoft.com/en-us/sysint ... s/autoruns

Edit- Looks like you are using Process Explorer. I'm curious. Under the threads tab what's it say for Pale Moon.

This might shed some light as well. http://www.novirusthanks.org/products/r ... k-scanner/

User avatar
Nigaikaze
Board Warrior
Board Warrior
Posts: 1322
Joined: 2014-02-02, 22:15
Location: Chicagoland

Re: Ridiculous CPU load (50% to 99%)

Unread post by Nigaikaze » 2017-09-26, 05:52

Another troubleshooting option here would be to restart Pale Moon with a new clean profile and let it run that way for a while, just to rule out the possibility that something in your profile is causing this odd behavior.
Nichi nichi kore ko jitsu = Every day is a good day.

Arag_e

Re: Ridiculous CPU load (50% to 99%)

Unread post by Arag_e » 2017-09-28, 17:44

John connor wrote:Edit- Looks like you are using Process Explorer. I'm curious. Under the threads tab what's it say for Pale Moon.
That's what I showed you in my last two posts.

I already told you what thread is doing this. It's MSVCR120.dll at the top of the list. It shows up at random intervals along with a slew of associated mspeg2vdec.dll threads. If I kill it, everything goes back to running normally at regular speeds, but it only lasts for a while before it shows up again and it means playing whack-a-mole while keeping an eye on the graph at all times.
Attachments
2.JPG

Locked