adexin/refinerycms-videojs

Too much memory consumption by Dragonfly

Closed this issue · 1 comments

Hi

I'm using this gem for playing videos from 1 hour to 3hours in length. Videos are stored on my VPS disk, I don't embed them from YouTube. I saw a lot of memory consumption by Dragonfly when playing 170MB webm video (1hour length), it tried to eat 1GB in memory.

Sorry what a little stupid question - but how Dragonfly works? Is it purpose to do on-the-fly video converting to dimensions specified in refinery backend? Could you add info to readme about high memory consumption? My server crashed twice, I'm using only 512MB ram. Now I prefer including videos by absolute url to do playback without Dragonfly processing. Thanks.

Hi, Martin. Sorry for slow response.
Refinery uses Dragonfly to save files on the server and process images.
Dragonfly does nothing with video file. It only generates urls for video.js player.
I think the problem is in your rails server which tries to cache the response.
Try to configure your http server (apache/nginx) to serve the files directly.