telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.43k stars 5.25k forks source link

Huge memory consumption #2464

Closed Alukardd closed 5 years ago

Alukardd commented 8 years ago

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

hdhog commented 8 years ago

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

Alukardd commented 8 years ago

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 notifications@github.com wrote:

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

Aokromes commented 8 years ago

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.

cringeops commented 8 years ago

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.

zaps166 commented 8 years ago

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

dagmoller commented 7 years ago

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

strangeman commented 7 years ago

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

lorien commented 7 years ago

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.

POPSuL commented 7 years ago

I've same issue =(

dzmitry-kankalovich commented 6 years ago

Same happens for me on MacOS actually.

igormp commented 6 years ago

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

myimage

koderrr commented 6 years ago

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.

koderrr commented 6 years ago

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

yermulnik commented 5 years ago

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

IRGC commented 5 years ago

image

see my memory usage :|

xp-vit commented 5 years ago

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.

yermulnik commented 5 years ago

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

lonedone commented 5 years ago

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.

ssarkisy commented 5 years ago
Screenshot 2019-06-25 14 22 39
selivandex commented 5 years ago

same here

AydarAkhmetzyanov commented 5 years ago

7gb )

ayozemr commented 5 years ago

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

ulitiy commented 5 years ago

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.

saeedesmaili commented 5 years ago

same here

ayozemr commented 5 years ago

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 :-(

Aokromes commented 5 years ago

https://github.com/telegramdesktop/tdesktop/issues/1317

nuruder commented 5 years ago

Guys, 10,88Gb... :(

PlugIN73 commented 5 years ago

5 gb on MacOS :( what the fuck?

drupaladmin commented 5 years ago

2,2 Gb MacOs 10.15.1

MrRTi commented 5 years ago

7,45 Gb MacOs 10.15.1

xpoback commented 4 years ago

Over 6Gb on Ubuntu

lelvisl commented 4 years ago

Any updates?

Aokromes commented 4 years ago

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

Firsto commented 4 years ago

how to fix it?

asomir commented 4 years ago

I have the same problem, 1.47Gb

Jacke commented 4 years ago

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

E011011101001 commented 4 years ago

Telegram For Mac, 2.94 GB now

siemarell commented 4 years ago

image

Firsto commented 4 years ago

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

IRGC commented 4 years ago

image almost 1.4GB

moeatsy commented 4 years ago

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

sartyukhov commented 4 years ago

image

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

Merujan99 commented 4 years ago
image

60GB

danialkeimasi commented 4 years ago

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

hanbule commented 4 years ago

image

Limman commented 4 years ago

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).

dmikushin commented 4 years ago

MacOS 10.15 same

avatar-lavventura commented 4 years ago

Any solution or advice for this huge memory leak?

pickfire commented 4 years ago

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

avatar-lavventura commented 4 years ago

How could I disable them? @pickfire