High CPU usage (~90-100%, single tab) on specific YouTube page while browser-mon extension is enabled - related to #18 and #1111
Summary
The XDM Browser Monitor Firefox extension causes a sustained, single-process CPU spike (~90-100%) on a specific YouTube video page, resulting in choppy/ stuttering video playback with no download in progress at all. This looks like the same underlying issue reported in #18 (high CPU during YouTube/ Google Drive downloads) and, more closely, #1111 (100% CPU on Twitch.tv, resolved by disabling the browser-mon extension) - except in my case there was no active download at all, just normal video playback, which suggests the extension's page-monitoring/content-script logic itself is the cost, independent of whether a download is actually happening.
Environment
OS: Linux Mint 22.3 (Zena), based on Ubuntu 24.04 Browser: Mozilla Firefox 156.0 XDM extension: "browser-mon" (XDM Browser Monitor), version 2.2 Extension ID: [email protected] XDM desktop app: Installed at /opt/xdman (Java-based backend) GPU: AMD Radeon RX 6500 XT (radeonsi/Navi24, Mesa driver)
Affected URL (reproducible test case)
https://www.youtube.com/watch?v=bmeCV8gPo14 ("Michael Holm - I'll return" - South African Top 20 History video)
Steps to Reproduce
- Ensure the XDM Browser Monitor extension is enabled in Firefox (no download in progress).
- Open the URL above in a normal (non-Private) Firefox window and play the video.
- Playback stutters/pauses within the first ~30-60 seconds. No buffering indicator is shown, and YouTube's own "Stats for nerds" overlay confirms buffer health stayed healthy (~20-60s) throughout - this is not a network/buffering issue.
- Open Firefox's built-in task manager (about:processes). The content process hosting this one tab is pegged at ~90-100% CPU, isolated to that single process, while every other open tab - including a different YouTube video playing at the same time - stays at normal (<5%) CPU.
Isolation / Root Cause Confirmation
- Confirmed via about:support that hardware video decoding (VP9/H264) is fully supported and active; the affected video streams as VP9 (vp09...) at 1280x720@30fps, well within normal hardware-decode capability - ruled out as a software-decode/codec problem.
- Confirmed via about:processes that the CPU spike was isolated to the single tab/content process for this video, not a system-wide resource issue (other tabs/videos unaffected).
- Opened the same URL in a New Private Window (extensions disabled by default) - video played back smoothly, 0 dropped frames, normal (~3%) CPU.
- Re-tested in a normal window with only the XDM Browser Monitor extension manually disabled via about:addons - video played back smoothly, confirming this extension specifically (not another installed extension) as the cause.
Expected Behavior
The extension's page-scanning/video-detection logic should not cause sustained high CPU usage on a page after initial detection, and should have negligible cost when no download is actively in progress.
Actual Behavior
On the affected page, the extension causes continuous high CPU usage for as long as the tab remains open with video playing - no download involved.
Relation to existing issues
- #18: High CPU usage while downloading from Google servers (YouTube, Drive) - same general theme (XDM + Google/YouTube = high CPU), but during an active download.
- #1111: High CPU usage on Twitch.tv, resolved by disabling browser-mon - same mechanism as what I'm reporting (streaming page, not downloading), just a different site. Together with my report, this suggests the high- CPU behavior isn't site-specific (YouTube vs Twitch) but a more general issue in how the browser-mon extension monitors/scans media pages.
Suggested Next Steps
- Reproduce using the URL above with the extension enabled (no download needed to trigger it).
- Profile the extension's content script activity on this page (e.g. via Firefox's Profiler or about:processes) to identify what is being repeatedly executed/polled while idle-monitoring a page.
- Consider whether detection logic is looping, re-scanning, or re-attaching listeners unnecessarily on certain player/DOM structures, and whether this same logic explains #18 and #1111 as well.
Happy to provide further diagnostics (e.g. Firefox Profiler capture) if useful.
Source: subhra74/xdm