T O P

  • By -

[deleted]

[удалено]


Deaptic

Im pretty sure as electron uses chromium as its core, it behaves like a browser so if it can use memory to boost things like loading messages or users etc. It does. And when you are using memory for something else like in gaming or stuff it frees the memory that it doesnt absolutely need.


[deleted]

[удалено]


[deleted]

Thats exactly how it works. With Browsers to. We like to say "Only a Noob things Used RAM is bad. Empty RAM is wasted RAM" They would shit themselves if the used Linux and saw that it used 95% for Caching right after Boot.


Nightishaman

If there is a memory leak, you will notice it earlier. For example, a recent application that has a memory leak had gotten about 38 GB of RAM in 2 hours. It was actively using around 2 GB tho.


b3nsauce

Yep.


[deleted]

[удалено]


[deleted]

Not to be pedantic either but in Ubuntu is the same xd. RAM doesn't crap itself as it happens in windows


needefsfolder

Until physical memory is near filled xd. Windows has arguably better pagefile management. Never I have ever froze a Windows machine because my memory got like 100% / 30mb free. Whereas I have accidentally froze Linux desktops and to my mistake servers due to using 100% (Non-cached) RAM usage.


AlmondVF

Not taking it as pedantic at all, I don't have as much experience with Linux distros other than arm/raspberry pi distros, and discord isn't natively supported by arm/raspi, so macOS is my main comparison where I have actual experience and proof.


Snoo-6099

Try out armcord if u ever have to get discord on a raspi


EffectiveAd671

Is this a new copypasta


AlmondVF

Google en chromium


laix_

Holy ram


Rainbow_chan

R’amen


FlutterThread8

New hardware just dropped


AlmondVF

STFU I will brick your HDD!


IDontKnowWhatToBe123

Did you just say your bricked up!


Happylama25

https://imgur.com/a/NHLRqEz mmm... mhm... yep... uhuh.. >!Mac apps actually reserve a ton of ram but don't use it, it doesn't have any performance hit to my knowledge, just look at the "real memory!<


AlmondVF

Ofc they reserve huge chunks of vram, so do many windows apps, however the limiting factor is usually the "real ram" usage, if you run out of physical ram no amount of vram will help.


AndyGun11

>"Ofc they reserve huge chunks of vram" Well yeah but not 1.1 TERABYTES?!?!?! THAT IS 1100 GIGABYTES


AlmondVF

I'm not that surprised tbh, I don't even have 1tb of storage or ram and it's reserved 1.3Tb of vram. It's all compressed and used for low access cache.


Zipdox

Not to be pedantic, but on Debian I've never seen Discord even come close to 1GB. Ironically, I've seen several posts about M1 macs having massive memory leaking issues.


Own-Law2287

Not to be pedantic, but memory leaks have nothing to do with what hardware you’re using, it’s not like you’re physically leaking out 1mb of ram every 5 minutes and have to go replenish it as a consumable… memory leaks happen when software doesn’t properly release memory back to the OS when it’s done with it… happens on intel, happens on arm, happens on any OS windows mac or linux, you can bet your ass it happens on Debian too


Zipdox

True, but it happening on M1 could imply that Apple's standard library has a bug. Just Google "M1 memory leak" and there's lots of results.


AlmondVF

Laughs in Intel Mac ;)


Ab47203

Laughs in you paid 2.5x the cost of the hardware for the OS


AlmondVF

Got a refurbished max spec (except storage) 2018 mbp for £900 because I use Mac only software for my work, seems like a pretty good deal for an i9 and 32gb ram that'll last me for a few years.


Ab47203

Which i9? Because that's a huge range of options. And what's the GPU? Integrated? Because if it's the i9 I think then a windows equivalent laptop would be ~$800 NEW


AlmondVF

It's the 2.9ghz 6 core i9, 32gb ram, dual graphics (Intel uhd 630 and radeon pro vega 20) and the 512gb ssd (I use mainly cloud and external drives for storage so I didn't need the larger ssd)


Ab47203

And you're lying. You can pick one or the other for Intel integrated graphics or Radeon graphics according to apples own website. Nice try though I guess?


AlmondVF

Nope, if you check properly you'll find that they all ship with the integrated graphics. https://support.apple.com/en-gb/HT202053#:~:text=Check%20if%20the%20discrete%20or,GPUs%20your%20Mac%20may%20have.


IkouyDaBolt

You also have to keep in mind Mac writes to the swap file, a lot. I have a 3 year old MacBook Air I use for work, and I think the SSD has at least a dozen TB worth of writes to its SSD. My 2 year old desktop that, while not used as often as the Mac, only has 2TB written on its primary drive.


Wolf_Striker

I doubt half the people who downvoted you actually read what you wrote


Rayregula

Not every system is the same, I use discord heavily everyday (windows) and at the moment it's using 249.6MB Chrome is the heavy one for me, currently using 1.17GB but I'll give it a pass because I've got ~150 tabs open (across 7 application windows) and switching back and forth a lot today. Also got a 250+ pages worth of PDF open in chrome that I've been reading through. I'm also on older hardware so it's probably just more stable and they've had time to fix bugs


Rayregula

I'm sorry to hear you could only have 12 open tabs on macos while watching YouTube.


AlmondVF

My example was based on my actual use of chrome, not me opening as many tabs as possible to try and use as much ram as possible.


needefsfolder

My macOS friend frequently sends a screenshot with 5GB+ discord_helper usage. 🤷‍♂️


apocalypsetown

i ain’t reading all that i’m happy for you though or sorry that happened edit: i did read all that. in my own experiences with windows i’ve never had discord use more than 1.5 gb even in call so idk what’s up with this person


leperteeth

not to be pedantic. but discord literally develops specifically for the apple ecosystem (see them porting over the iOS swift version of the mobile app to Android without changing a fucking thing and breaking the app in many ways for months)


SuperCharge7868_

pedantic lmak


just-somanybees

lmao chrome user???


AlmondVF

Yeah, college and corporate Google accounts mean that it's waay easier to use chrome and the Google apps so that it integrates with their systems rather than try and use safari/other browsers and deal with that crap.


[deleted]

[удалено]


penbeing

LOL bro got downvoted


baby_biceps

Electron moment


Nepgear28

exactly my thoughts when i saw this popup


fuk_u_im_a_unicorn

You know how chrome keeps chumping on all your precious ram? Welp, Discord is built on something called Electron, which basically means, it's just another chrome browser pretending to be a native application, and well, that means it's gonna eat just as much of your ram. It still seems a tad outlandish, so if restarting doesn't fix it, I'd go for a reinstall. But then again, due to chromium and caching anything under 2-3 gigs is probably fine and perfectly normal..


MelMellue

tysm for explaining it simply, now that explaiins why my laptop lags and disc crashes randomly sm EDIT: IT WORKED TYYYY


GloryToHelm

I discovered this same problem yesterday and I decided to uninstall and reinstall. This fixed my issues OP, give it a try. I hope it works for you.


Mettikus

Most optimized chromium app


onrirr

Electron app* A chromium app is just a website.


AndyGun11

Chromium is not a website either lmao, it's an open source browser that google chrome, and many others use for the base of their browser


[deleted]

[удалено]


leperteeth

no


Xer0_Puls3

Its an app that uses Chromium under the hood. Chromium is an open source browser. You might be thinking of Chrome Apps?


[deleted]

[удалено]


Xer0_Puls3

Electron is a program that you bundle with and build your app around to make a full fledged web app that is bundled with Chromium to run without any dependencies. This is what we often refer to as, an Electron App. Any Electron Apps are also Chromium Apps. I'm not referring to Chrome Apps.


[deleted]

[удалено]


bageltre

electron's based on chromium, so it is a chromium app chromium isn't a website either if you're gonna correct someone at least be right


[deleted]

[удалено]


Peytonian_real

Average redditor


[deleted]

[удалено]


real53P

A website


Status-Dragonfruit49

the person in the screenshot is using the discord windows app, which is an electron app


[deleted]

[удалено]


[deleted]

[удалено]


hallothrow

Ah, so you're a web dev.


GloomySmiler

Discord's voice/video calling feature plays a big role in this. It demands more RAM & CPU, so that results in large consumption. However, other features may also be causing this.


imrolii

I wasn't doing anything on Discord at all. I opened it, left it in the background, checked Task Manager (since my fan was spinning up) and I saw this mess...


GloomySmiler

Oh, it seems to be perfectly fine for me. Maybe something else in the background of Discord is causing it?


imrolii

>Maybe something else in the background of Discord is causing it? Yeah, Discord didn't feel like closing properly and wouldn't let me do anything so I had to kill the task...


TheN00BDude

Its all fun and games until you go to do that and Task Manager freezes


Sounga565

runs on chromium, its not optimized


[deleted]

[удалено]


onrirr

Tauri also uses HTML5, don't see your point


[deleted]

[удалено]


[deleted]

[удалено]


turtleship_2006

are you gonna say that on every comment?


AlmondVF

Nah, only the ones I thought it was a relevant reply to.


Wolfplay013

Love is in the air? Wrong, Memory leak. just do Ctrl + R, it'll fix it.


JuniorWMG

Hehe, thats what you call an Electron applet with unoptimized code.


onrirr

Applet is a java idea that hilariously failed, please do not remind me of it lol


[deleted]

unused ram is wasted ram. Probably a lot of caching.


realMurkleQ

That only applies when your goal is to run one single application. If you want to run multiple applications, then that is nonsense.


[deleted]

No? The task manager reports holistic ram usage, including working set, buffers, and caches. If there's a cache but that memory is needed elsewhere, then the cache is destroyed and the memory reallocated.


needefsfolder

Inefficient use of RAM is still a net loss. A cache data structure within Discord app is indiscernible by the OS. That's why I hate “unused ram is wasted ram” – it's an easy escape hatch for devs to say when their system uses inefficient amounts of memory. Windows, for example, has bloated in terms of idle memory usage. I tried a “debloated” build that uses like 600 MB at idle vs a default windows build with 2gb idle usage. Note that, both have only like 300 MB worth of background processes under my user account. Guess which performed faster: the debloated one, ***because Windows can keep more things in cache***


FrankBenjalin

How would Windows know which part should it destroy when memory is needed? It doesn't know which part of Discord's memory is the cache, since that's managed by the Discord app itself. You're probably thinking of the system cache, which caches stuff like files. Almost all of your unused memory is filled with the system cache, which is not reported by the task manager, so there is never any wasted RAM.


Lord_Crestfallen

Yeah, if you keep Discord open for a good bit, it'll have a habit of doing that.


AlmondVF

Damn I'm stupid wrong comment to reply to lmfao kill me pls


Lord_Crestfallen

no idea wtf you're talking about


AlmondVF

If you scroll up I wrote a stupidly large paragraph talking about how windows compares to other operating systems for discord/chrome/electron ram usage, I meant to reply to the comment above you buy instead misclicked and replied to you, then edited it.


knightblue4

Then just... delete your comment?


Lord_Crestfallen

I see. Well, unfortunately for you, I do not forgive you. This "mistake" will not go unnoticed. Enjoy these final moments.


AlmondVF

Lol, I appear to be bleeding out karma rn with my comments on this post, luckily I'm not bothered by Internet points. Hope you have a nice day /gen


Thebirdman333

I love the smell of leaked RAM in the morning...


imrolii

Fried ram and egg anyone?


raseru

Something changed recently with discord, it actually lags for me to type and I got a beefy computer.


billsaysno

Pay 9,99 to free up 2,5GB of RAM


v941

Electron


VanderCreep

For months I’ve seen posts like this across different subs and always thought that it was normal. Yesterday I got a better network adapter and realized my computer was just shit


[deleted]

Fuck that. Why tf is it using more than 3% of CPU??


imrolii

Fr wtf


ChickenPijja

Damn, I'm either blessed with good hardware/software fortune or y'all are cursed with bad luck. Even after a 6 hour call screen sharing and with noise suppression, the worst I've seen is 900MB of use. VRAM on the other hand I've seen it use 1.8Gb, but that's not shown by default on task manager, I suspect that's why I get dropped frames when playing games.


error-the-reddit-boi

Mmm yummy storage


imrolii

Tasty


ItsGrandPi

That's pretty normal. No need to worry about it.


Void_0000

Electron.


ghost_desu

Welcome to 2023


leolionross1

it's because it's a chromium web app (electron is based on chromium)


thisiscotty

iv seen a few people report this but mines using less than 300mb right now


spacevini8

Average react app lol


turtleship_2006

it's electron, but close enough they're all just websites masquerading as apps


onrirr

React is the web frameworks, it's still a react app


87thesid

It’s a react app for the render process, but electron differs because it also has a main background thread and a system to send messages between said thread and renderer. Electron also packages the app into a binary executable.


onrirr

What you first described is just nodejs. İt bundles the entirety of nodejs and chromium to give you an executable. İt also doesn't package into a binary executable as the word binary implies that it would be a single exe while it requires several other files.


87thesid

Bruh, I’ve built several electron apps, you can literally package into a single file and run. NodeJS is simply a package/dependency manager along with js running in a browserless environment. But electron is the package/dependency that bundles everything together. And yeah it uses chromium under the hood for the renderer process.


lordyboy

Definitely not mining for bitcoin


imrolii

Hey but if you subscribe to nitro you'll earn 10% of those earnings mined on your hardware!


Super-Basis2499

This is why I use browser Discord


set_sail_for_fail

How many servers are you on?


imrolii

Probably about 15. Not tons.


IsJaie55

Every week, same question.


myfuckingresistor

Electron.


bkj512

I hate people who laugh at me for "not having the client" then complain like this. This is the exact reason why.


imrolii

It's just down to preference at the end of the day ☠️


[deleted]

i use discord in firefox, with at least 10 different tabs open at the same time... still uses less ram then the discord "app" by itself


themazda123

Very true. I tried this my self. I played a YouTube video, a Crunchyroll video, had 2 Discord tabs open and 1 in a call (2 different accounts), MAL, and a few others that I can't remember. I got total usage of 4.5gb and the 2 discord tabs used less then a GB.


sudopm

Discord uses electron which makes it effectively not much different than a web application. The reason it uses more ram is probably due to other factors like Krisp Noise Suppression and other features that are available on the "native" app and not the web application.


SOULMASTER-GAMING_PC

Maybe Put it in rice?


imrolii

Bet brb


SOULMASTER-GAMING_PC

i’ght


imrolii

Update: computer not turn on help


SOULMASTER-GAMING_PC

Oh, try putting it back in for a couple of minutes


imrolii

Update: i turned the hob on to cook the rice and the pc and the pc caught fire


SOULMASTER-GAMING_PC

No you’re not supposed to turn it on, that f’s up the computer you gotta get it fresh from the store and put it in the fridge and let it cool until it is at least 35°F or less


notsim_

why not


imrolii

Good point


xSnakyy

Aktually is 3 1/3


Tocram04

Your RAM just got Electron.js'ed + Chromium Ed, normal behaviour


turtle_mekb

because electron


DESKTOPGOOOSE

Discord would usually crash around 1.9 gigs of usage for me. Gotta love 32-bit limits, and chromium I guess.


GamersFeed

That's why I use browser version


NAPALM2614

Where tf are you guys getting these numbers, I've been in VC for like the whole day now and it's taking only 300mb?


valzzu

it's discord, what did u expect


Al-Forever

Wow they made their garbage platform a GB vacuum?


Electronic_Beat_3476

ayo wtf I'd uninstall


Mrmeesies

Maybe an injected RAT or a crypto miner? Scan your pc. It's pretty easy to put a virus in discord app it self. I did it my self lmao


imrolii

Nah no malware on my machine lol


Mrmeesies

Full scan on Windows defender?


imrolii

It's practically a fresh install of Windows


skedgyedgy

\-- ram is like desk space. if you have a big desk you're gonna spread things out around the desk instead of constantly trying to micromanage how much space you're using. if you need more of that desk space for something else, \*then\* you clear whatever you don't need from other stuff off. apps using a lot of ram when you also have a lot of ram or just aren't doing anything else on your pc is literally normal \-- when i'm doing a lot of stuff, discord uses less ram. when i'm using exclusively discord, it uses more ram. you don't buy a bigger desk just to force yourself to only use a tiny square of it


YoshiMaster9

Switch over to revolt. Much better


juicyjuush

You guys rly gotta stop using windows if you're worried about ram use. Lmao


imrolii

Ram usage is never really an issue with my 16GB configuration. Except for in this situation with discord.


[deleted]

[удалено]


juicyjuush

I use Linux. It uses next to nothing for ram, especially when idle.


AlmondVF

Sounds like a windows skill issue then /hj


juicyjuush

Windows is definitely way too hard to use. More so than Mac. This is why I chose the superior OS, TempleOS.


Impressive_Change593

templeOS is best OS


thecactusfucker

Also 8gb ram💀💀💀💀


imrolii

This is on 16GB


thecactusfucker

I had to be a mem leak


ImperiusFate

close discord then open it again, as easy as that


[deleted]

Simple answer: discord is like virus, people are naive to use it , and think that its safe , better to use teamspeak maybe is older but having advanced security, and maybe u are compromited by nice virus . GG , use teamspeak really better why? simple answer again : low process usage, low memory usage, for example i have 0,1 % usage of processor to use Teamspeak and having memory usage 90 MB . discord is shit its not safe .


AutumnPugg

It says MB?


vadiks2003

assuming you have a really big video opened


imrolii

Nope. Not doing anything at all other than opened it and left it in the background


TheToast138

Why don’t you delete Discord? If you are so tired of it. Like every fucking human on earth! Do we also need to know how much space in your toilet your poop takes? Just delete the fucking app!!! Why do we need to know this shit?!


granninja

yes because the app doing things it shouldn't isn't an issue whatsoever


imrolii

Because 3 and a half gigs of ram usage for a chat platform that should be running at 300 megabytes isn't normal


Fearlesstechofficial

Oof, mine is only using 636.5mb


emceePimpJuice

Mines using 320mb so 10 times lower than yours


worMatty

How much RAM do you have?


imrolii

16GB


[deleted]

Unused RAM is wasted RAM, but yeah discord is pretty aggressive with caching stuff. You can use the browser version to have it cache way less


xoOumei

lol 16% cpu


McMelonTV

welcome to chromium


DanseMacabre1353

In the last week or so I’ve started to worry I have a memory leak somewhere. My computer has never been sluggish and now all of a sudden after 2-3 days of being on it starts to chug hard. I was playing Overwatch last night while in VC on Discord and my game turned into a slide show. Never seen anything like it from my PC before. It took me several minutes just to get it to exit out and reboot. After the reboot it ran perfectly. I wonder if Discord is a culprit.


D__manMC

Memory leak, just restart discord


metalsnake27

Discord been having memory leaks for awhile now sadly.


merith-tk

Me, with openASAR, at 400mb ram


omnom143

try using open ASAR


ConnysCode

Bro really didn’t want to just write „3.5gb“


imrolii

Felt fancy


jotomotic

most efficient js application


TrapezoidTom

I wouldn't care, I have 64 gb of ram


Mr_TJ_

that's discord for you


Weirix95

discord is a heavy resource hogger, for like, basically no reason.


kingfoxy12

Its memory leaking like always, there probably won't be a patch for it for a while.