-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak and RAM usage #10277
Comments
That’s crazy - for typical use it should use about 300MB resident (rsz); up to 1GB for worst case massive account.
What RSZ are you seeing? And how big is the javascript heap? (ctrl-shift-I to open the inspector; go to performance tab; hit heap snapshot to see where the RAM is going).
…--
Matthew Hodgson
Matrix.org
On 7 Jul 2019, at 09:56, Kurt Roeckx ***@***.***> wrote:
Hi,
The electron version uses 12 GB of RAM just after starting. This will grow over time, and I've seen it use 60 GB of RAM.
I'm using the .deb package from riot.im. currently using version 1.2.2, but it's not a new problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
On Sun, Jul 07, 2019 at 05:11:34AM -0700, Matthew Hodgson wrote:
That’s crazy - for typical use it should use about 300MB resident (rsz); up to 1GB for worst case massive account.
A few minutes after I started it, I get:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
kurt 8021 4.7 3.5 1242136 284376 pts/5 Sl+ 17:05 0:16 | \_ /opt/Riot/riot-web
kurt 8023 0.0 0.4 210664 40136 pts/5 S+ 17:05 0:00 | \_ /opt/Riot/riot-web --type=zygote --no-sandbox
kurt 8051 28.5 7.9 12987672 638572 pts/5 Sl+ 17:05 1:41 | | \_ /opt/Riot/riot-web --type=renderer
kurt 8087 13.6 10.2 1638764 828360 pts/5 Sl+ 17:05 0:45 | | \_ /opt/Riot/riot-web --type=renderer
kurt 8046 2.1 1.4 361956 117748 pts/5 Sl+ 17:05 0:07 | \_ /opt/Riot/riot-web --type=gpu-process
And how big is the javascript heap?
It reports things around 300 MB.
|
right, so that’s 284MB + 40MB + 640MB + 828MB + 118MB of resident RAM. however, some of that might be shared libraries shared between the processes? Will compare with other electron deployments. 300MB js heap is about right. |
So looking at the smaps file, I see things like:
32089a940000-320a9a900000 ---p 00000000 00:00 0
Size: 8388352 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Rss: 0 kB
Pss: 0 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 0 kB
Referenced: 0 kB
Anonymous: 0 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB
Swap: 0 kB
SwapPss: 0 kB
Locked: 0 kB
VmFlags: mr mw me sd
32081a900000-32089a900000 ---p 00000000 00:00 0
Size: 2097152 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Rss: 0 kB
Pss: 0 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 0 kB
Referenced: 0 kB
Anonymous: 0 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB
Swap: 0 kB
SwapPss: 0 kB
Locked: 0 kB
VmFlags: mr mw me sd
149b8d9b1000-149bcd942000 ---p 00000000 00:00 0
Size: 1048132 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Rss: 0 kB
Pss: 0 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 0 kB
Referenced: 0 kB
Anonymous: 0 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB
Swap: 0 kB
SwapPss: 0 kB
Locked: 0 kB
VmFlags: mr mw me sd
So that's 8 GB - 256 kB, 2 GB, and 1 GB - 444 kB that's allocated
but unused.
|
So I got his now: |
I have to restart riot on daily basis because it just stops working.
|
Riot is just using 11G or ram.... |
riot.im/develop (and next point release) fixes a lot of leaks. |
I no longer use riot sorry. |
I guess it's not as bad as it used to be. At start it seems to
require 1.5 GB and then seems to stay stable around 1 GB of used
RAM.
|
@kroeckx I'm going to close this issue for now as the problems from 2019 have been resolved and the codebase has changed significantly since then. If you feel that there are further improvements to be made, it would be helpful to have a new issue with fresh details. Thank you for helping make Element better! |
* Remove experimental PWA support for Firefox and Safari ([\element-hq#24630](element-hq#24630)). * Only allow to start a DM with one email if encryption by default is enabled ([\element-hq#10253](matrix-org/matrix-react-sdk#10253)). Fixes element-hq#23133. * DM rooms are now encrypted if encryption by default is enabled and only inviting a single email address. Any action in the result DM room will be blocked until the other has joined. ([\element-hq#10229](matrix-org/matrix-react-sdk#10229)). * Reduce bottom margin of ReplyChain on compact modern layout ([\element-hq#8972](matrix-org/matrix-react-sdk#8972)). Fixes element-hq#22748. Contributed by @luixxiul. * Support for v2 of MSC3903 ([\element-hq#10165](matrix-org/matrix-react-sdk#10165)). Contributed by @hughns. * When starting a DM, existing rooms with pending third-party invites will be reused. ([\element-hq#10256](matrix-org/matrix-react-sdk#10256)). Fixes element-hq#23139. * Polls push rules: synchronise poll rules with message rules ([\element-hq#10263](matrix-org/matrix-react-sdk#10263)). Contributed by @kerryarchibald. * New verification request toast button labels ([\element-hq#10259](matrix-org/matrix-react-sdk#10259)). * Remove padding around integration manager iframe ([\#10148](matrix-org/matrix-react-sdk#10148)). * Fix block code styling in rich text editor ([\element-hq#10246](matrix-org/matrix-react-sdk#10246)). Contributed by @alunturner. * Poll history: fetch more poll history ([\element-hq#10235](matrix-org/matrix-react-sdk#10235)). Contributed by @kerryarchibald. * Sort short/exact emoji matches before longer incomplete matches ([\element-hq#10212](matrix-org/matrix-react-sdk#10212)). Fixes element-hq#23210. Contributed by @grimhilt. * Poll history: detail screen ([\element-hq#10172](matrix-org/matrix-react-sdk#10172)). Contributed by @kerryarchibald. * Provide a more detailed error message than "No known servers" ([\element-hq#6048](matrix-org/matrix-react-sdk#6048)). Fixes element-hq#13247. Contributed by @aaronraimist. * Say when a call was answered from a different device ([\element-hq#10224](matrix-org/matrix-react-sdk#10224)). * Widget permissions customizations using module api ([\element-hq#10121](matrix-org/matrix-react-sdk#10121)). Contributed by @maheichyk. * Fix copy button icon overlapping with copyable text ([\element-hq#10227](matrix-org/matrix-react-sdk#10227)). Contributed by @Adesh-Pandey. * Support joining non-peekable rooms via the module API ([\element-hq#10154](matrix-org/matrix-react-sdk#10154)). Contributed by @maheichyk. * The "new login" toast does now display the same device information as in the settings. "No" does now open the device settings. "Yes, it was me" dismisses the toast. ([\element-hq#10200](matrix-org/matrix-react-sdk#10200)). * Do not prompt for a password when doing a „reset all“ after login ([\element-hq#10208](matrix-org/matrix-react-sdk#10208)). * Fix incorrect copy in space creation flow ([\element-hq#10296](matrix-org/matrix-react-sdk#10296)). Fixes element-hq#24741. * Fix space settings dialog having rogue title tooltip ([\element-hq#10293](matrix-org/matrix-react-sdk#10293)). Fixes element-hq#24740. * Show spinner when starting a DM from the user profile (right panel) ([\element-hq#10290](matrix-org/matrix-react-sdk#10290)). * Reduce height of toggle on expanded view source event ([\element-hq#10283](matrix-org/matrix-react-sdk#10283)). Fixes element-hq#22873. Contributed by @luixxiul. * Pillify http and non-prefixed matrix.to links ([\element-hq#10277](matrix-org/matrix-react-sdk#10277)). Fixes element-hq#20844. * Fix some features not being configurable via `features` ([\element-hq#10276](matrix-org/matrix-react-sdk#10276)). * Fix starting a DM from the right panel in some cases ([\element-hq#10278](matrix-org/matrix-react-sdk#10278)). Fixes element-hq#24722. * Align info EventTile and normal EventTile on IRC layout ([\element-hq#10197](matrix-org/matrix-react-sdk#10197)). Fixes element-hq#22782. Contributed by @luixxiul. * Fix blowout of waveform of the voice message player on narrow UI ([\element-hq#8861](matrix-org/matrix-react-sdk#8861)). Fixes element-hq#22604. Contributed by @luixxiul. * Fix the hidden view source toggle on IRC layout ([\element-hq#10266](matrix-org/matrix-react-sdk#10266)). Fixes element-hq#22872. Contributed by @luixxiul. * Fix buttons on the room header being compressed due to long room name ([\element-hq#10155](matrix-org/matrix-react-sdk#10155)). Contributed by @luixxiul. * Use the room avatar as a placeholder in calls ([\element-hq#10231](matrix-org/matrix-react-sdk#10231)). * Fix calls showing as 'connecting' after hangup ([\element-hq#10223](matrix-org/matrix-react-sdk#10223)). * Prevent multiple Jitsi calls started at the same time ([\element-hq#10183](matrix-org/matrix-react-sdk#10183)). Fixes element-hq#23009. * Make localization keys compatible with agglutinative and/or SOV type languages ([\element-hq#10159](matrix-org/matrix-react-sdk#10159)). Contributed by @luixxiul.
Hi,
The electron version uses 12 GB of RAM just after starting. This will grow over time, and I've seen it use 60 GB of RAM.
I'm using the .deb package from riot.im. currently using version 1.2.2, but it's not a new problem.
The text was updated successfully, but these errors were encountered: