motion icon indicating copy to clipboard operation
motion copied to clipboard

Memory issue in current master

Open drewzh opened this issue 10 years ago • 1 comments

I've been struggling to get the current master branch of motion working on Arch due to memory consumption eventually killing the device; requiring a hard reset to get things back to normal again. With around 480mb of ram, this takes roughly a day.

Here's my current config: https://gist.github.com/drewzh/bc732995782baf6e92d5 It's a fairly standard config, with RTSP setup at 3FPS at 640x320 with an on_movie_end executing a...

[send mail with /tmp (tmpfs) attachement of captured movie] --> [move to NAS device]

...both of which always complete successfully and apart from the growing memory consumption, everything seems fine, /tmp is at 0% usage.

I've always used this on_movie_end script with motion using HTTP polling, and there's never been such an issue before until I started using master for RTSP support.

Please correct me if I'm wrong, but motion isn't meant to be using this much memory right?

screenshot_2014-06-16-06-34-25

Best regards, Drew

drewzh avatar Jun 16 '14 08:06 drewzh

This has been fixed in @Mr-Dave branch it seems :) I've been running for nearly a week now and all my issues are gone. I'll leave this issue open for visibility.

drewzh avatar Jun 19 '14 08:06 drewzh