Trying to import ffmpeg.js results in a process taking up 5GBs+ of RAM in a few seconds.
The imported file is 10mb so i can understand it taking up a lot of ram but that much ?
This is something that has been recurring over my projects, parcel processes taking up a lot of ram.
Do you guys have any plans on reducing the memory footprint ?
We're definitely working on addressing this, it's currently one of our top priorities. We're mainly focusing on stability and performance at this point, so we can release a stable version of Parcel 2
I'm able to reproduce this and will figure out why this is happening exactly, will report back in this issue.
I've been able to mitigate this problem by passing PARCEL_WORKERS=1 to it. It seems like the memory usage has something to do with how many worker threads it's trying to run. Maybe they're duplicating work?
I have (it seems) exactly the same issue with ffmpeg.js and Parcel 1.12.4: it runs out of memory when I import ffmpeg and start parcel serve. Is there any existing workaround, maybe some Parcel CLI arguments?
@roman-petrov You should try using Parcel 2 with the workaround literally on top of your comment.
I've been able to mitigate this problem by passing PARCEL_WORKERS=1 to it.
@Banou26 , thank you. I will try to upgrade to Parcel 2 and use PARCEL_WORKERS=1
Most helpful comment
We're definitely working on addressing this, it's currently one of our top priorities. We're mainly focusing on stability and performance at this point, so we can release a stable version of Parcel 2
I'm able to reproduce this and will figure out why this is happening exactly, will report back in this issue.