Page 1 of 1

Memory Leak

PostPosted: Sun Sep 21, 2014 1:15 pm
by verdejt
I'm running serviio on a Mac Mini with 2Gb of ram installed and transcoding turned off running snow leopard. I have encountered a problem where my video playback seems to freeze and stutter. I have setup activity monitor to watch ram usage. while serviio is running I can watch the Inactive memory increase and the free memory decrease quickly. While playing a movie for about 10 minutes I have seen the free memory drop from 1.17 Gb free to about 700mb and continue to drop by about 2mb per sec. Any ideas on how to stop this. I am running serviio 1.3.1.

Re: Memory Leak

PostPosted: Mon Sep 22, 2014 12:10 pm
by zip
are you sure it's Serviio? It should not really keep anything in memory with regards to actually streaming a file.

Re: Memory Leak

PostPosted: Fri Sep 26, 2014 3:18 am
by verdejt
Yes I'm sure. I was watching all the processes and when I was streaming a movie my free ram dropped about 1mb per second. Once I stopped the playback it held steady. Serviio has been sitting idle (running normal but not doing any streaming) and my free ram has held steady at about 1.2 Gb. When my free ram drops to about 250mb my playback stops and I have to wait for it to catch up, then it only plays for a little bit before stopping again.

Re: Memory Leak

PostPosted: Sat Sep 27, 2014 4:01 pm
by zip
Are you using MediaBrowser or DLNA? And transcoded video or native playback?

Re: Memory Leak

PostPosted: Thu Oct 02, 2014 9:10 am
by buutti
I can confirm this. I'm running Serviio 1.4.1 on Windows 7 64-bit. During the day it has hogged all memory and the computer is unusable. I have eliminated other possibilities, and I'm sure the problem lies in Serviio.

Re: Memory Leak

PostPosted: Thu Oct 02, 2014 2:02 pm
by jhb50
You need to provide more info. I run on a 2 gig system with Serviio and thousands (yes thousands) of online feeds refreshing continually and have no resource problems. Attached is my memory map.

Re: Memory Leak

PostPosted: Fri Oct 03, 2014 8:31 am
by buutti
You do know that if a software has a memory leak, it might not show up in the task manager / resource monitor? What kind of info can i provide?

Re: Memory Leak

PostPosted: Fri Oct 03, 2014 4:16 pm
by jhb50
I'm actually on a 4 gig system, and my free memory drops to 0 as well, but I think the important number is "available memory".
How much memory do you have and what is it being used for and what is available.ie: post your memory map. If nothing is available then the system must wait for "modified" to be paged out to disk before it can load the next page required by playback.
Solution is to terminate other processes or get more memory.

Re: Memory Leak

PostPosted: Sun Oct 05, 2014 1:01 pm
by buutti
I have 4 gigs RAM. I'll try to get the memory map next time this happens.

Re: Memory Leak

PostPosted: Sun Oct 26, 2014 2:22 pm
by verdejt
I am streaming from a networked drive in xvid format. I am using memory clean to display free ram. With serviio not doing anything other than just running as soon as I start streaming a movie my free ram seems to drop by about 500k per second. There are no other programs running as this is the only app running as this is the only thing I use the mac mini for . I have since loaded xbmc and stream lots of the same movies that I streamed in serviio and my free ram stays constant about 1.1gb.

Re: Memory Leak

PostPosted: Sun Oct 26, 2014 6:55 pm
by zip
Could it be the same as this? viewtopic.php?f=5&t=17687#p94935

Re: Memory Leak

PostPosted: Tue Nov 11, 2014 11:10 am
by verdejt
No because I have Activity monitor running and the only thing using ram is Serviio and you can literally watch it dwindle. Once you are done playing a movie is doesn't free it up either. I have been running xvmc for about a month now with no memory problems at all. Free RAM stays at about a gig or so.