The sample Smooth Streaming Client provided
here continues to grow in memory until it fails out with an Out of Memory Exception. Our version is using Silverlight 3 and we have tried the Beta 2 and TRW 1 versions of the
Smooth Streaming Client. However, the memory usage continues to be a problem.
There are numerous values to control the buffers in the
API like FlushBuffers, but none of them seem to affect the memory usage.
Using WinDbg, I see that there are giant System.Byte arrays and System.UInt, but I can't seem to clear them out.
Any thoughts as to how I can clear the buffers or chunks to keep the memory usage more reasonable?
</div>
Live Smooth StreamingIIS 7.0 mediaSmooth Streaming Player Development KitSmooth Streaming Clientadaptive streaming
@daub815 there is a lot of analytics data being collected in the client but what you are seeing does not seem normal. Do you know at what rate memory is growing for you?
In RTW version we fixed some memory issues but that requires SL4. Have you tried that?
Below is a breakdown of a 2 hour period. I only entered some from the beginning and the end. Minus the one anomaly of 19 mb, which I am not sure that came from we are leaking about 1 megabyte a minute. That's not a huge concern, but we do very long videos
that can span hours. The only way to release the memory is to close the player, which releases some of the memory. Is there a way to adjust the buffer like NetFlix does with their silverlight client? Any suggestions would be greatly appreciated. Thanks.
Hi Vsood! It's march 2012 and this problem is still present. Silverlight 4 application - running inside the browser SSME 1.5.938.94 After 12 hours of playing the memory will reach ~2GB! Any suggestions on this issue? Thanks!
@k_cuervo we are aware of this problem and working on getting it fixed. The current SDK was designed tor 4-5 hours sessions only. Please stay tuned for an update.
SSME v2 has fixed this issue for Silverlight. However memory leaking still exists in WindowsPhone. Here is the stacktrace:
System.OutOfMemoryExceptionOutOfMemoryException at
System.Collections.Generic.List`1.set_Capacity(Int32 value) at
System.Collections.Generic.List`1.EnsureCapacity(Int32 min) at
System.Collections.Generic.List`1.Add(UInt64 item) at
Microsoft.Web.Media.Diagnostics.CircularList`1.Add(UInt64 item) at
Microsoft.Web.Media.Diagnostics.k.h(UInt64 A_0) at
Microsoft.Web.Media.Diagnostics.o.j(MediaStreamType A_0, Int32 A_1, UInt64 A_2, UInt64 A_3) at
Microsoft.Web.Media.Diagnostics.l.ah(MediaStreamType A_0, Int32 A_1, UInt64 A_2, UInt64 A_3) at
Microsoft.Web.Media.SmoothStreaming.z.cg(Object A_0, ap A_1) at
Microsoft.Web.Media.SmoothStreaming.w.a9(b A_0) at
Microsoft.Web.Media.SmoothStreaming.w.q(MediaStreamType A_0, Boolean& A_1, TrackInfo& A_2, TrackInfo& A_3, az& A_4) at
Microsoft.Web.Media.SmoothStreaming.z.cm(MediaStreamType A_0) at
Microsoft.Web.Media.SmoothStreaming.z.bg() at
System.Threading.ThreadHelper.ThreadStartHelper(ThreadHelper t) at
System.Threading.ThreadHelper.ThreadStart_Context(Object state) at
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at
System.Threading.ThreadHelper.ThreadStartHelper()
I can confirm that too (the WP7 part). During Smooth Streaming playback the WP7 consumes nearly +10MB/30 Min memory. Sometimes more. After ~3-4 hours of playback the memory grown from 70mb to 160MB or more which is not a really good thing and basically
makes the small-mem device owners suffer during playback.
I am really conserned with wether Microsoft is willing to fix their Smooth Streaming Client for Windows Phone. Taking into account that new devices are coming out and the platform is become more and more popular.
Will the IIS team take a look at the memory issues and poor performance of the client?
Smooth Streaming Client running on HTC 8x for 2 hours.
Will they add multiple support resolution for Windows Phone?
From other replies in this thread you cas see that I am not the only who is having problems with the Smooth Streaming Client for Windows Phone.
Please, we need an aswer to these questions as soon as possible!
Thank you.
// Update
Application throw an OutOfMemoryException when using 167Mb of memory on a Lumia 800
System.OutOfMemoryException occurred
Message=OutOfMemoryException
StackTrace:
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(UInt64 item)
at Microsoft.Web.Media.Diagnostics.CircularList`1.Add(UInt64 item)
at Microsoft.Web.Media.Diagnostics.k.h(UInt64 A_0)
at Microsoft.Web.Media.Diagnostics.o.j(MediaStreamType A_0, Int32 A_1, UInt64 A_2, UInt64 A_3)
at Microsoft.Web.Media.Diagnostics.l.ah(MediaStreamType A_0, Int32 A_1, UInt64 A_2, UInt64 A_3)
at Microsoft.Web.Media.SmoothStreaming.z.cg(Object A_0, ap A_1)
at Microsoft.Web.Media.SmoothStreaming.w.a9(b A_0)
at Microsoft.Web.Media.SmoothStreaming.w.q(MediaStreamType A_0, Boolean& A_1, TrackInfo& A_2, TrackInfo& A_3, az& A_4)
at Microsoft.Web.Media.SmoothStreaming.z.cm(MediaStreamType A_0)
at Microsoft.Web.Media.SmoothStreaming.z.bg()
at System.Threading.ThreadHelper.ThreadStartHelper(ThreadHelper t)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStartHelper()
daub815
7 Posts
Memory Usage
Jul 01, 2010 07:29 PM|LINK
The sample Smooth Streaming Client provided here continues to grow in memory until it fails out with an Out of Memory Exception. Our version is using Silverlight 3 and we have tried the Beta 2 and TRW 1 versions of the Smooth Streaming Client. However, the memory usage continues to be a problem.
There are numerous values to control the buffers in the API like FlushBuffers, but none of them seem to affect the memory usage.
Using WinDbg, I see that there are giant System.Byte arrays and System.UInt, but I can't seem to clear them out.
Any thoughts as to how I can clear the buffers or chunks to keep the memory usage more reasonable?
</div>Live Smooth Streaming IIS 7.0 media Smooth Streaming Player Development Kit Smooth Streaming Client adaptive streaming
daub815
7 Posts
Re: Memory Usage
Jul 02, 2010 02:05 AM|LINK
vsood
160 Posts
Microsoft
Moderator
Re: Memory Usage
Jul 02, 2010 05:31 AM|LINK
@daub815 there is a lot of analytics data being collected in the client but what you are seeing does not seem normal. Do you know at what rate memory is growing for you?
In RTW version we fixed some memory issues but that requires SL4. Have you tried that?
IIS Smooth Streaming Client
daub815
7 Posts
Re: Memory Usage
Jul 02, 2010 07:51 PM|LINK
Below is a breakdown of a 2 hour period. I only entered some from the beginning and the end. Minus the one anomaly of 19 mb, which I am not sure that came from we are leaking about 1 megabyte a minute. That's not a huge concern, but we do very long videos that can span hours. The only way to release the memory is to close the player, which releases some of the memory. Is there a way to adjust the buffer like NetFlix does with their silverlight client? Any suggestions would be greatly appreciated. Thanks.
k_cuervo
6 Posts
Re: Memory Usage
Mar 28, 2012 03:15 PM|LINK
vsood
160 Posts
Microsoft
Moderator
Re: Memory Usage
Mar 28, 2012 04:51 PM|LINK
@k_cuervo we are aware of this problem and working on getting it fixed. The current SDK was designed tor 4-5 hours sessions only. Please stay tuned for an update.
SSME
k_cuervo
6 Posts
Re: Memory Usage
Sep 21, 2012 08:54 AM|LINK
SSME v2 has fixed this issue for Silverlight. However memory leaking still exists in WindowsPhone. Here is the stacktrace:
LordDG
8 Posts
Re: Memory Usage
Sep 25, 2012 05:51 PM|LINK
I can confirm that too (the WP7 part). During Smooth Streaming playback the WP7 consumes nearly +10MB/30 Min memory. Sometimes more. After ~3-4 hours of playback the memory grown from 70mb to 160MB or more which is not a really good thing and basically makes the small-mem device owners suffer during playback.
k_cuervo
6 Posts
Re: Memory Usage
Nov 27, 2012 04:51 AM|LINK
It has been a few months since my last post.
I am really conserned with wether Microsoft is willing to fix their Smooth Streaming Client for Windows Phone. Taking into account that new devices are coming out and the platform is become more and more popular.
Will the IIS team take a look at the memory issues and poor performance of the client?
Smooth Streaming Client running on HTC 8x for 2 hours.
Will they add multiple support resolution for Windows Phone?
From other replies in this thread you cas see that I am not the only who is having problems with the Smooth Streaming Client for Windows Phone.
Please, we need an aswer to these questions as soon as possible!
Thank you.
// Update
Application throw an OutOfMemoryException when using 167Mb of memory on a Lumia 800
k_cuervo
6 Posts
Re: Memory Usage
Apr 22, 2013 01:15 PM|LINK
Hi Vishal!
Is there any information on an update for the SSME Client for Windows Phone?
Thank you for your prompt reply.