question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: High CPU usage caused by ProtonMail (and possibly other services?)

See original GitHub issue

Avoid duplicates

  • I have searched the issues tracker for a bug report similar to mine, in vain

Ferdium Version

6.0.0.nightly.31

What Operating System are you using?

Other Linux

Operating System Version

5.17.5-arch1

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

Ferdium on wayland utilizes as much CPU as chromium on wayland with a few tabs open.

Actual Behavior

When I open ferdium and add a few services, after a short while my fan springs into action and when I check htop, it reveals that ferdium utilizes an entire thread, for reasons unknown to me.

Steps to reproduce

It should be noted that I run ferdium with the --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features-WaylandWindowDecorations options. The bug does not appear to affect non-wayland instances. (Edit: It does, it just doesn’t do so as fast)

  1. Run ferdium
  2. Open htop
  3. Sort by maximum CPU utilization

Debug link

https://debug.ferdium.org/735bad7f-3a58-46dd-b297-b9adc4f5df6f

Screenshots

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pepper3kcommented, Jun 12, 2022

I noticed that this seems to have been resolved from version 56 and up. I am currently on 58 and have about 12 services open, and my CPU is averaging at about 1%, none of the ferdium services appear at the top of the list, they appear to be at 0%. Once in a while one of them will “spike” up to about 1 or 2 percent for a moment and then go back down to 0.

I have a feeling that this was resolved on proton’s infrastructure, or coding in their webapp backend.

@palepinkdot are you still experiencing this issue?

@vraravam If no one is having this problem anymore, I think it would be safe to close this one off…

1reaction
palepinkdotcommented, Jun 9, 2022

After taking a bit of a dive into it it looks like it might (I say might because I don’t have to dive into these kinds of use cases in my daily work) have to go with JVM GC major collections and rendering… Here are some screenshots of the Arch task manager and Chrome Devtools from beta 1…

I’m having a hard time believing this is a Ferdium issue, but I could be wrong. On Chromium, using the web app, the same processes are at play but seem to be less of an issue.

TL;DR - Garbage collection is CPU intensive and it looks like Proton is doing quite large cleanups.

image Screenshot_2022-06-08_23-22-47

@vraravam do you think my assumption here is correct?

Read more comments on GitHub >

github_iconTop Results From Across the Web

High CPU usage #130 - ProtonMail/proton-bridge - GitHub
Expected Behavior Light CPU usage Current Behavior Extreme CPU usage for a few seconds whenever the bridge is in use by Mail.app: fetching ......
Read more >
High CPU usage on WMI service when using Proton VPN
I am reaching 100% cpu usage in total when using proton VPN. WMI service is only high cpu usage when using the VPN,...
Read more >
Mailspring has high CPU usage - Bug Reports
The CPU is always 80% used only by Mailspring (Intel Core i9-7920X X-Series ) All i have is 3 email accounts.
Read more >
Our ProtonMail Adventure - A Five Act Drama - sigma star gmbh
Soon we experienced high CPU usage and stalls of the bridge process. The CPU usage problem has highly correlated with the used mail...
Read more >
Protonmail can delete the wrong email and nobody cares
ProtonMail are selling a premium service at premium prices, and yet a catastrophic data loss bug has existed in Bridge for a while....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found