keshavbhatt / whatsie

Feature rich WhatsApp Client for Desktop Linux
MIT License
1.72k stars 48 forks source link

Whatsie takes too much resources (CPU/bandwidth) #131

Open yuvalaviel opened 10 months ago

yuvalaviel commented 10 months ago

Sorry, my bad. While Whatsie does consume considerable CPU resources, its not as problematice as I thought. Closing.

alacny commented 9 months ago

image Hello, I'd like to confirm the fairly high consumption of CPU resources. I attached a screen shot with values from htop. This is a bit problematic because drains a laptop battery even when the application runs in background and waits for user activity or incoming/outcoming messages. My laptop is Lenovo T460, 8GB RAM, Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2 cores.

Best regards and thank you

letkan commented 7 months ago

Same here, 30% CPU 1.3G RAM. Unacceptable.

alacny commented 7 months ago

Hello, The problem disappeared now. My present version is 4.14, thank you. image

Sadi58 commented 7 months ago

I've seen the same problem today after I suddenly began experiencing difficulties in syncing/receiving and sending messages. Restart didn't help. However, it disappeared after deleting the folder "~/.local/share/org.keshavnrj.ubuntu" (but not "~/.config/org.keshavnrj.ubuntu"), which meant that I had to "link device" again. Perhaps sometimes some data corruption might be the cause (no disk space problem).

AxeldeWater commented 6 months ago

I can confirm that it happened to me too, normally this does not happen. It had a steady 20% CPU usage for me. After clearing data and logging back in it went back down to 2%, but no idea how it happened.

khssnv commented 5 months ago

The same happened to me with the snap package, 1 CPU core fully loaded by the app on idle. Re-installation helped.

alacny commented 4 months ago

Thanks @khssnv, I did as you suggested and made the following test.

  1. Uninstalled Whatsie,
  2. Installed app again,
  3. Turned the background synchronization on as the application suggested after startup. The CPU consumption raised to 100%+. So I uninstalled the application again and didn't turn on the background synchronization. The CPU consumption is now near 0%. This leads to conclusion that allowing background synchronization may cause the high CPU consumption.

Regards, Adam

Sadi58 commented 1 week ago

I uninstalled and even manually removed the local directories "~/.config/org.keshavnrj.ubuntu" and "~/.local/share/org.keshavnrj.ubuntu", but I couldn't see any option to disable background synchronization during app startup or using the command "whatsie -s" (Settings). I would very much appreciate if I could be directed to that setting as this problem keeps coming back a little while after I remove the directory "~/.local/share/org.keshavnrj.ubuntu" (where local chat sync data are held).