#Out of Memory Error on Lambda

16 messages · Page 1 of 1 (latest)

carmine jasper
#

I'm facing a OOM error on Lambda. Currently only at a 3008MB limit but I'm spawning the maximum recommended lambdas (200) but it seems to not be helping. Video is about 20 minutes long. Since I'm only doing the 1 concurrency frame per lambda as per default, what is causing the issue? I attached some logs from Cloud Watch

carmine jasper
#

Context:

Video is 20 minutes long, 1 audio track, about 120 clips + different compositions and effects.

Remotion version: 4.0.438

I tried using all kinds of video tags - remotion/media Video, normal Video, OffthreadVideo, etc.

Not sure why there's such high memory consumption

shut sierra
#

are you mixing video tags?
seems like offthreadvideo and remotion/media are both present and both wanna take 50% RAM.
that could be a reason. ai analysis:

This is the primary killer. Two independent caching systems both claim ~50% of total memory:

Rust compositor video cache: 1340 MB (log 1) / 1246 MB (log 2)
@remotion/media browser-side cache: 1479 MB (log 1) / 1443 MB (log 2)

carmine jasper
#

in this case, you would just recommend using @remotion/media's video tag?

carmine jasper
shut sierra
carmine jasper
carmine jasper
#

if i set offthreadvideo's cache to be 500mb, it should be safe in some instances where it fallbacks

carmine jasper
carmine jasper
#

seems like my video was having some issue and it kept spawning keybanks

#

which resulted in an OOM error

shut sierra