home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
Memory leak in TVService
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CyberSimian" data-source="post: 1285943" data-attributes="member: 141969"><p>I don't know what is causing the "memory leak" problem, and I have no knowledge of the internals of TV Server and no experience of .Net programming <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" />. However...</p><p></p><p>Earlier posts from those who know more than I have suggested that the problem may be caused by the .Net Garbage Collector not collecting garbage soon enough. This made me wonder whether there is a <strong>SetGarbageCollectionThreshhold()</strong> function that could be used to set a lower threshhold for garbage collection (1 GB, or perhaps even 512 MB). I did not find such a function (but I performed only a cursory search). However, I did find a <strong>GC.Collect()</strong> function that can be used to trigger garbage collection. This suggests that TV Server could be modified to contain logic something like this:</p><p></p><p><strong>if</strong> "n" minutes have elapsed since the previous call to GC.Collect(),</p><p><strong>and</strong> TV Server is not streaming content to an MP client,</p><p><strong>and</strong> TV Server is not recording TV or radio,</p><p><strong>and</strong> a recording is not about to start within the next 5 minutes,</p><p><strong>then</strong> call GC.Collect();</p><p></p><p>"n" should probably be a configurable setting (since we don't know what would be an appropriate value).</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1285943, member: 141969"] I don't know what is causing the "memory leak" problem, and I have no knowledge of the internals of TV Server and no experience of .Net programming :(. However... Earlier posts from those who know more than I have suggested that the problem may be caused by the .Net Garbage Collector not collecting garbage soon enough. This made me wonder whether there is a [b]SetGarbageCollectionThreshhold()[/b] function that could be used to set a lower threshhold for garbage collection (1 GB, or perhaps even 512 MB). I did not find such a function (but I performed only a cursory search). However, I did find a [b]GC.Collect()[/b] function that can be used to trigger garbage collection. This suggests that TV Server could be modified to contain logic something like this: [b]if[/b] "n" minutes have elapsed since the previous call to GC.Collect(), [b]and[/b] TV Server is not streaming content to an MP client, [b]and[/b] TV Server is not recording TV or radio, [b]and[/b] a recording is not about to start within the next 5 minutes, [b]then[/b] call GC.Collect(); "n" should probably be a configurable setting (since we don't know what would be an appropriate value). -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Memory leak in TVService
Contact us
RSS
Top
Bottom