R
Railway12mo 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
Percy12mo ago
Project ID: 9cdabffc-3b4a-4339-a9a4-0d9b5184ec56
awerks
awerksOP12mo ago
9cdabffc-3b4a-4339-a9a4-0d9b5184ec56
Obuolys
Obuolys11mo ago
I have the same problem
Solution
Brody
Brody11mo 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
Obuolys11mo ago
But why does this not occur locally?
Brody
Brody11mo ago
seems like your code is behaving differently on a different platform
Want results from more Discord servers?
Add your server