Tdesktop: Huge memory consumption

Created on 26 Sep 2016  ·  55Comments  ·  Source: telegramdesktop/tdesktop

Description of problem

At this moment tdesktop runs 7days on my laptop.
I use suspending (not hibernating).
And now I have this:
alukardd 2000 1.6 20.6 3985188 1620220 ? Sl Sep19 159:57 Telegram

1.5Gb RSS !!!

I can provide u some additional info until I closed app.

Configuration

Debian stretch/sid

Tdesktop v0.9.56

Most helpful comment

5 gb on MacOS :( what the fuck?

All 55 comments

getnoo Telegramm v 0.10 03.08.16 memory leak over 5Gb on week

AFAIK, it's because I have several channels with hundreds of thousands messages. And tdesktop has not any garbage collector and never return memory to OS.

On September 28, 2016 8:53:05 AM GMT+03:00, serg [email protected] wrote:

getnoo Telegramm v 0.10 03.08.16 memory leak over 5Gb on week

On the past i used valgrind vs telegram, the result was.. pain.
On windows, atm i have 21d of uptime without close windows and no leak at all.

I think it depends on amount of data (texts and media) and amount of contacts. Mine rarely goes over 300 MB on x64 Debian Stretch.

Telegram 0.10.11 on Linux (custom build), load history from a few weeks/moths containing links, files, GIFs, stickers, sounds, etc and scroll up and down using mouse for a few minutes.
Example result (~46 min of run time, but only a few minutes of scrolling):
spectacle h25737

2.6Gb of RAM after 4 days...
Running on Linux...

Debian Jessie, Telegram Desktop consuming about 2.5 Gb of RAM after 5 days.

Debian Stretch. Telegram Desktop eats few Gb in few days. So now every 2-3 days my system freezes for few minutes and OOM Killer kills some processes. Nightmare.

I've same issue =(

Same happens for me on MacOS actually.

Can confirm this.
After about a day of usage, it's using over 1gb of RAM.

myimage

Hogs RAM and gets killed:

[320827.895088] Out of memory: Kill process 889 (telegram-deskto) score 918 or sacrifice child
[320827.897542] Killed process 889 (telegram-deskto) total-vm:17257476kB, anon-rss:7434276kB, file-rss:0kB, shmem-rss:0kB
[320828.866089] oom_reaper: reaped process 889 (telegram-deskto), now anon-rss:16kB, file-rss:0kB, shmem-rss:0kB

Telegram Desktop running for 3 days:
ss-2018-09-07-15-38-16

aur/telegram-desktop-dev 1.3.15-1 on Arch.

Must say this is pretty rare. Also it's achieved this state in less than 24h.

photo_2018-09-26_12-15-20

The laptop (8 gig of RAM, 8 gig of swap) became completely unresponsive and was swapping heavily, I had to kill the process via ssh.

aur/telegram-desktop-dev 1.3.16-1

Is this issue going further? Same memory consumption issue here for me on Linux Mint =( Have to restart app every other day.

image

see my memory usage :|

Seen similar today on MacOs and Telegram Desktop 1.5.15: Telegram was running for about a week/1.5 and was consuming 3Gb of memory before system rebooted itself after hang.

I've switched to Franz meanwhile though would prefer using _native_ app.

I have few contacts and my telegram uses 3GB.
Screenshot 2019-04-23 at 16 42 18
Meanwhile my friend's installation uses up to 10GB.
Screenshot 2019-04-23 at 14 59 14
Such a significant memory leaks you have.

Screenshot 2019-06-25 14 22 39

same here

7gb )

any news on this? 2-3 gb on telegram desktop mac

any news on this? 2-3 gb on telegram desktop mac

Probably the best solution is to switch to the "Telegram" client, not the "Telegram desktop". It seems it doesn't leak.

same here

any news on this? 2-3 gb on telegram desktop mac

Probably the best solution is to switch to the "Telegram" client, not the "Telegram desktop". It seems it doesn't leak.

You mean the iOS like one? The more complete client is this one :-(

Guys, 10,88Gb... :(

5 gb on MacOS :( what the fuck?

2,2 Gb MacOs 10.15.1

7,45 Gb MacOs 10.15.1

Over 6Gb on Ubuntu

Any updates?

no, this ticket is closed because duplicate, if anyone knows how to read valgrind and supply fixes check the opened ticket.

how to fix it?

I have the same problem, 1.47Gb

Same problem, Fucking Durov's brother, hire normal brogrammers

Telegram For Mac, 2.94 GB now

image

I use beta version now, and memory consumption is about 500MB

image
almost 1.4GB

4 years of development since this thread start, extra small messenger still use more memory than few windows of webstorm

image

yeah, problem still exists! (650 Mb just the beginning)
Durov, please help :D

image
60GB

image
just after i open telegram the process started with 800MB ram minimum
telegram desktop version 1.9.3
pop_os gnome

i must say, i check windows 10 and login with same account on telegram desktop, and it's barely gets 200MB ram

image


Telegram Desktop v2.1.5.
Huge memory leaks started after update to v2.x from v1.x. The same situation on 2 Macs (10.12 and 10.13).

MacOS 10.15 same

Any solution or advice for this huge memory leak?

Disable animations? I tried disabling some stuff then memory dropped from 600 MB to 150 MB.

How could I disable them? @pickfire

ظاهرا مشکل به دلیل محدودیت تعداد ساخت دیتابیس بوده
فقط یک دیتابیس میشه ساخت با نوع سرویس خریداری شده
ممنون

On Thu, Jul 30, 2020 at 3:38 PM Alper Alimoglu notifications@github.com
wrote:

How could I disable them? @pickfire https://github.com/pickfire


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/telegramdesktop/tdesktop/issues/2464#issuecomment-666301752,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH7VLQRKRUHUHQZTSL37IRDR6FICNANCNFSM4CQ24IJA
.

How could I disable them? @pickfire

Settings > Advanced > Performance

2020-07-31-010517_387x678_scrot

@pickfire I have Telegram 6.3 (downloaded from here: https://macos.telegram.org ), which does not have any Advanced option.

telegram 6.3 for macos is a different application.

Oh, the telegram in linux have this option which I downloaded from archlinuxcn repo with megumifox patch have that option.

Was this page helpful?
0 / 5 - 0 ratings