Community-edition: High memory usage of Rambox core process after long working time

Created on 3 Jul 2018  路  26Comments  路  Source: ramboxapp/community-edition

Version: 0.5.17
Platform: linux (x64)
Electron: 1.8.4
Chromium: 59.0.3071.115
Node: 8.2.1

After several days of work Rambox eats more than 5gb of RAM. I have about 10 services enabled, so first thought is that some service eats much memory. Here https://github.com/saenzramiro/rambox/issues/1588 I request per-service memory usage report, but now there are no ways to check memory usage per service.

So I manually disable all services (press 'Service disabled' checkbox), and Rambox memory usage is reduced only to 3gb of RAM.

Also I wait about 30 minutes if something is cached or not unloaded, but the Rambox memory usage stay same about 3gb.

So the source of problem is that Rambox core have some memory leak, that eats memory.

stale

Most helpful comment

This issue is about Rambox core process memory usage. This is like Chromium browser will continue use 2gb of memory after you close all tabs. So can you recheck the memory usage after temporary disabling all services (this must act like you close all tabs in Chrome).

All 26 comments

I am having similar problem. First 3 days, it used about 300Mb ram, 5 services. And now it is using >1Gb Ram, still 5 services.

Same for me. 4 services 800MB. Desktop clients for each services total 300MB tops.

Same issue:

  • Version: 0.5.17
  • OS: macOS High Sierra

same:

  • version: 0.5.17
  • os: win 10 x64 (latest)
  • runtime: 6 days
  • tabs: 1 mattermost, 1 slack, 1 fb messenger, 1 whatsapp
  • ram usage: 906 MB

@panther7

tabs: 1 mattermost, 1 slack, 1 fb messenger, 1 whatsapp
ram usage: 906 MB

This is normal memory usage, because Rambox use Chromium web engine, and in Chromium (Google Chrome) browser you can see that each tab eats about 200 mb, so 200 * 4 = 1000 mb.

Can you compare the RAM usage at startup (after few minutes) and after 6 days?

Also can you recheck the RAM usage of Rambox, when close (disable) all service tabs?

@MurzNN after several day using Rambox without restarting it, my tabs memory usage reached 1.3Gb per tab.

I confirm this issue. I left my pc on, last week. When I came back today (after 6 days), my rambox was like that at the task manager in Windows 10:
image

I've found out rambox running backgroud use so much CPU too. This is annoying. It didn't happen for me when i used Franz

There is clearly a memory leak. I use http://valgrind.org/ for C++ project but I don't know if it is relevant here.

After a good sleep LuL.
screenshot from 2018-08-09 16-56-16

My installation is using up a lot of CPU while running in the background (with Telegram and 2x Slack). My fans are running non-stop.

Kde Neon / Ubuntu 16.04

image

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Subscribers, can you recheck this problem in fresh 0.6.2 version of app?
How to check this issue right:

  1. Open Rambox with many services enabled
  2. Work with that services some long time (3+ hours)
  3. Check Rambox total memory usage, remember this value.
  4. Disable all services in Rambox (via checkboxes on main tab) - this will only unload tabs, auth and other settings will stay here.
  5. Wait 5 minutes when garbage collector will free up memory, check again Rambox total memory usage.
  6. Publish results here: Rambox usage before disabling all services, after disabling, and difference.

Here is my rambox ram after 4 or 5 hours (with 5 services). I can't give full information right now but i think i understand this issue:
screenshot at 2018-10-26 14-45-14
If i am not wrong, rambox is acting like a browser. So it will keep getting new data from chat service and pushing it to users. After a long time, new data will be "malloc" memory, and old data will be kept their location in memory. So if users want rambox (or even franz) use less memory, they must close their application, and start it again. When users start it, it will load latest data from server -> lesser memory after starting. So, basically, rambox is using chromium core, and it is acting like a browser. It is a little it different because rambox won't close its services, so service tabs memory won't be freed.

This issue is about Rambox core process memory usage. This is like Chromium browser will continue use 2gb of memory after you close all tabs. So can you recheck the memory usage after temporary disabling all services (this must act like you close all tabs in Chrome).

This is definitely still an issue. The memory footprint doesn't bother me as much as the consistently high CPU usage, even when in the background.

I think i've found the reason:

  • If i lock my screen in hours, and i don't close rambox (let it run in background (system tray) only), rambox will increase its RAM
  • if i lock my screen and close rambox, there is no memory leak
  • If i don't lock my screen, it seems rambox won't use many ram even in a long time use
    I had this issue on Debian 10, Parrot OS, xfce4, mate, gnome3 and cinnamon has no different.

I can also confirm that I see this issue. After a few days away, rambox is using over 10GB for the core process on Linux (Ubuntu 18.10).

Process was not minimised to the system tray, but the screen has been locked. All of the tabs are using reasonable amounts of memory.

I have also seen high memory and CPU usage after running for 5-10 hours. Pretty sure this is a chromium issue, as it also seems to happen in other similar applications like franz or the electron GPM app.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

bump

Bump. This happens on Pro version as well. What is benefit of having multiple groups if it consumes twice as much memory if i just had those services opened in multiple browsers

Same problem... But I think this high memory usage maybe is an electron issue because another electorn based IM occupies more memory as well as before...

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed since there has not been any recent activity. Please open a new issue for related bugs.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LiBOSS-CZ picture LiBOSS-CZ  路  4Comments

arnauldb picture arnauldb  路  4Comments

bnn-y picture bnn-y  路  4Comments

jvdmeij picture jvdmeij  路  4Comments

saalkom picture saalkom  路  3Comments