You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I need to fetch a file from another site that returns an octet-stream, then pipe it to a file. The following code can re-produce this, where localhost:3000 is the site hosting the file I want to fetch:
Memory usage should go up, but once the file is written the memory usage stays up instead of coming back down.
What do you see instead?
The memory usage still stays up, even if you call destroy on the writableStream etc. Bun.gc(true) and Bun.gc(false) does not help the issue.
Additional information
In my testing, I'm writing a 1GB testing.bin file, but the memory appears to go from 280MB at idle, to 3200MB, unsure if this is expected or not. I presumed it would only go to ~1280MB.
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.45+196621f25
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
In my project, I need to fetch a file from another site that returns an octet-stream, then pipe it to a file. The following code can re-produce this, where localhost:3000 is the site hosting the file I want to fetch:
What is the expected behavior?
Memory usage should go up, but once the file is written the memory usage stays up instead of coming back down.
What do you see instead?
The memory usage still stays up, even if you call destroy on the writableStream etc. Bun.gc(true) and Bun.gc(false) does not help the issue.
Additional information
In my testing, I'm writing a 1GB testing.bin file, but the memory appears to go from 280MB at idle, to 3200MB, unsure if this is expected or not. I presumed it would only go to ~1280MB.
The text was updated successfully, but these errors were encountered: