R
Railway10mo ago
awerks

Writing files to a disk increases RAM usage

I have a simple program that lets the user send the video. It downloads it and saves to the disk. Now, when it does that, the memory usage goes up as well. It doesn't matter whether I write it on the volume, or not. Even deleting files afterwards within the program doesn't free up the memory. Running same program locally doesn't cause this problem. Why does this happen and how can I prevent it?
Solution:
ive experienced the same before as well, every time it was my own fault as i was unknowingly doing an in memory buffer. this isnt any fault of railways...
Jump to solution
6 Replies
Percy
Percy10mo ago
Project ID: 9cdabffc-3b4a-4339-a9a4-0d9b5184ec56
awerks
awerks10mo ago
9cdabffc-3b4a-4339-a9a4-0d9b5184ec56
Obuolys
Obuolys10mo ago
I have the same problem
Solution
Brody
Brody10mo ago
ive experienced the same before as well, every time it was my own fault as i was unknowingly doing an in memory buffer. this isnt any fault of railways
Obuolys
Obuolys10mo ago
But why does this not occur locally?
Brody
Brody10mo ago
seems like your code is behaving differently on a different platform
Want results from more Discord servers?
Add your server