Conversation
base on issues immich-app#31488, set const on Blob and response read or cancel.
Connection close fix
|
Label error. Requires exactly 1 of: changelog:.*. Found: 🗄️server. A maintainer will add the required label. |
|
Please fill out the PR template completely |
|
My Code have some help but it still have memory leak. Node.js 24.16 Memory Leak Bug. affects fetch() uploads with a Blob body. Same versions as the table: 24.15.0 is fine, 24.16.0 and 26.x leak, and a full GC doesn't get it back. Ref : nodejs/node#63574 |
|
Fix at Node.js v24.20.0. [ddacb3ff10] - buffer: fix Blob.stream() leaking source buffer (semimikoh) nodejs/node#63577 Ref : https://github.com/nodejs/node/releases#release-v24.20.0 |
|
I just try update my docker node.js to v24.21.0 and it work. memory leak gone. (I test with my new code). |
|
The linked issue is fixed by updating node; can this PR be closed? |
|
I thought I'd already closed this tbf |
base on issues #31488, set const on Blob and response read or cancel.
Description
Set Bold object with const.
Handle Connection cancel after error.
Fixes # (31488)
How Has This Been Tested?
Setup with remote machine learning server. and have ton of image to process.
Before update. The ram will keep going up and OOM.
After update. The ram keep more stable.
Screenshots (if appropriate)
Checklist:
src/services/uses repositories implementations for database calls, filesystem operations, etc.src/repositories/is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/)Please describe to which degree, if any, an LLM was used in creating this pull request.
...