RAM Usage High

Hey! I was developing some automations with HTML Templates and noticed that the RAM Usage was almost 22GB.

I’m using 6 channels, with a HTML Template on each one, the template has a fadeIn and a fadeOut (using jQuery, by setting the opacity from 0 to 1) and stay static. Even if I clear the channels using CG STOP and CG CLEAR the RAM Usage doesn’t lower, do you guys have any idea of best practices to avoid this high RAM Usage?

Hey! To help diagnose this, I have a few questions and suggestions:

Which CasparCG server version are you using?

How long did you run the setup before noticing this RAM usage? Was it over several hours, or did it spike quickly? This helps determine if it’s a gradual leak or something more immediate.

It might be a memory leak. Try running the command gl gc in the CasparCG console. This forces garbage collection and might release the memory.

Share your CasparCG config setup.

Could you share a simplified version of one of your HTML templates? This would allow others to try and reproduce the issue and pinpoint the source of the high RAM usage.