Franz: Messenger recipe constantly 17% CPU usage in Franz 5

Created on 19 Oct 2017  ·  32Comments  ·  Source: meetfranz/franz

Upgraded to Franz 5 yesterday and I noticed a higher CPU usage than the older client.

Expected Behavior

Not eat a constant 17-20% of cpu.

Current Behavior

Constantly requires at least 17%

Screenshots (if appropriate):

alt text

Possible Solution


Steps to Reproduce (for bugs)


  1. Add a Facebook Messenger service
  2. Login to service
  3. Check CPU usage
  4. Disable and it will go down.

Context



High CPU usage, drains battery and makes the device heat up.

Your Environment

  • Franz Version used: 5.0.0-beta.10.7
  • Operating System and version: macOS High Sierra 10.13
bug

Most helpful comment

Issue is still there, please reopen and investigate

All 32 comments

connected with #15

Same behaviour here, the Facebook tab is really CPU expensive.

Rambox is having the same issue: https://github.com/saenzramiro/rambox/issues/366

Wow it really puzzles me. I have added quite a lot of services which usually use round 0.1-1% each and sometimes go to 10-15% which I would still consider ok as it's for a short time. Messenger however is going batshit crazy with it's CPU usage!

I did some tests disabling all recipe code, polling, ... and it doesn't improve anything. I will spend some time profiling the service itself to figure out what to do.

Update
Interestingly by overriding the user agent to: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 it seems to be a little better. On average 10-25% instead of 50-90%.

Can confirm the update
screen shot 2017-10-20 at 10 54 03

@rwkyyy great to hear!

Can we do a little crowd test to make sure this is actually helping on a larger scale?
In ~/Library/Application Support/Franz/recipes/messenger, update the index.js with:

module.exports = Franz => class Messenger extends Franz {
  overrideUserAgent() {
    return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36';
  }
};

then reload Franz and take a look at your activity monitor.

@adlk
screen shot 2017-10-20 at 11 45 06
Even better 😊

Have a high CPU load with two Slack Services active on Sierra. 250% CPU
Even when I'm disabling all Services the CPU stays the same.

Version 5.0.0-beta.10

@ridculy I don't think the service is the problem. my cpu usage is the same as in my previous reply, and I have two slack channels logged.

Most probabbly something else is causing the CPU load (from Franz).

It's the "Support with Processing Power"

@ridculy What happens on your machine when disable "Support with Processing Power"? As it should use only 25% additional CPU when you are using your computer.

Without I disable "Support with Processing Power" everything is fine.
When I Enabling it :

bildschirmfoto 2017-10-23 um 22 03 34

I don't know where the Monero mining setting is as I couldn't find it in the UI, but I can no longer use Franz as it cuts my laptops battery life in half. You really shouldn't, by default, drain users batteries to mine a silly cryptocurrency -- especially since I can't even find a way to disable it. This is what viruses do.

Back to using a couple separate clients.

it isn‘t on by default. Go to settings -> account. if you see pricing options it‘s not activated.

At least it's not supposed to be. What would explain the CPU usage then?

I don't have any pricing options in my settings. Never did.

Maybe related to #117? As mentioned there, performance is atrocious unless I disable Facebook messenger!

@adlk Although your suggestion above to override the user agent does seem to improve it a little bit…

@rikur you are on Franz 5? If yes, does the Franz logo in your sidebar has a little ⭐️ ?

@danielbayley it could be. At my machine, CPU usage is now down to ~3-5% for messenger but I don't have a dedicated GPU in my MacBook Pro. At this point I suspect that the availability of a proper GPU could be a reason here.

@adlk I apologize for my harsh language earlier on.. I had installed a "franz 5 beta" from a community package -- however, turns out the maintainer had messed up build and it was still running franz 4.x

The actual Franz 5 is a lot more CPU friendly. Thank you.

Due to the messenger recipe update there are almost no complaints. I'm closing this for now. If anything comes up, let me know and I'm happy to reopen this.

Hi Guys.

Just installed Franz based on recommendation from Verge ... Straight to the point: Checking my activity monitor, noticed i have 6 "Franz Helper" processes running (and taking a huge chunk of my memory) and also huge energy impact on my laptop.

Any suggestion on how to deal with this, i don't want to get rid of the app anytime soon. 😞

I have 4 Services running btw:

  1. Gmail;
  2. Skype;
  3. Linkedln;
  4. Whatsapp.
    screen shot 2018-01-05 at 17 22 24

I was using franz 5.0.0-beta14, I heard laptop fan spin fast without doing heavy computing work. As I check the cpu and gpu usage, the cpu and gpu are both about 50%.
Since I have mined monero on my computer once, I can recognize the cpu usage pattern of mining monero.

and I cannot find any disable option in setting -- account, now I switch to the latest beta 15 to see if the monero miner is removed.

Update Jan 29 2018:
franz 5.0.0-beta15 still use my cpu and gpu to mine

Is Franz actually mining a cryptocurrency in the background?

When I enable ICQ service it jumps from 6-8% to 20-25%
I also have a few gmails, FB, WhatsApp, telegram, keep and calendar.
In general, why would it take 6-8% when no messages are being sent or received

Please reopen. My cooling fan is driving my colleagues crazy while running franz :(. Even when not using the software it eats a lot of memory and cpu

same here, when fb-messenger is open with a group-chat, cpu jumps to 80%

Issue is still there, please reopen and investigate

@AurelienVernay same here
Screenshot 2019-04-25 09 00 47

CPU Load is still crazy high

Franz is now unusable. It is now at 150% + while being in the background and not using it.

I don't have facebook messanger and franz cpu is crazy high
What do I use:
Notion.so, Todoist, Whatsapp, Slack, Telegram, Gmail, github, Google calendar

I've thrown in the towel now and switched to Rambox. It's open source and does not use nearly as much CPU as franz does. Can recommend 👍

Was this page helpful?
0 / 5 - 0 ratings