SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-07-2009, 10:44 AM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Discussion of Possible Memory Leak

I'm not 100% positive this is related to MC, but support seems to think so. I'm having problems with memory usage steadily climbing with 6.5.9. Support had me switch back to the default STV and the problem went away, but I just can't live without MC.

My setup:

3xHD100, 1HD200 all running MC pre-release 12.
No fanart turned on anymore.
BeyondTV theme
5 SD tuners and an HDHR for OTA
Java 1.6 update 11 (also tried update 7)
4GB on XP (only 3.2 recognized)
Java Heap at 1.332GB
Takes about 2 days to reach critical problems.
Usage is apparent after just 3 hours or so.

Any place to start looking for the problem?

Edit: One more thing. When I go to a screen from the original STV (i.e., Detailed Setup) a large amount of extra memory is used and doesn't seem to be released when I return to MC.

Last edited by toricred; 02-07-2009 at 10:46 AM.
Reply With Quote
  #2  
Old 02-07-2009, 01:48 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
I have the exact same issue... I was getting up to about 700-800MB in about 1 day and over 1GB in a few days. I was cycling every day to get by.

I am running the following setup:

SageTV 6.5
2xHD100
1xHD200
1xHD-PVR
1xdiamond usb capture

SageMC6.3.8b_12
plugins:
iMovie
Favorites excluder
Movie info screen
TV info screen
SageMC AMG 2.0 miniguide

I decided to try using the default STV and the memory stayed pretty constant at 300MB after 24 hours. I tried loading SageMC 6.3.8b_12 and memory spike up about 100MB for each extender that was powered up. But when I would turn them off, the memory would go back to about 300-400MB. I let the MC 6.3.8b 12 run for about 24 hours and it stayed pretty consistant. I am trying now with a few of the plugins loaded to try to see if I can isolate it down.

Thanks,
Jeff
Reply With Quote
  #3  
Old 02-07-2009, 02:04 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I'm glad to hear it's not MC itself. The imports I have installed are: OSDClock, OSDPlaytime, EP's Video Tools, iMovies, SageMC Popup Info (added after the problem started), and the replacement Info screens for &TV and Movies. Which ones were you running?

Last edited by toricred; 02-07-2009 at 02:08 PM.
Reply With Quote
  #4  
Old 02-07-2009, 02:21 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
I was originally running on all extenders:

iMovie
Favorites excluder 2.7
Movie info screen
TV info screen
SageMC AMG 2.0 miniguide

for my 1st test, I loaded 1 extender with Favorites excluder, iMovie, and AMG. The rest of the extenders I am only going to try iMovie and AMG to see how that goes...

I am also wondering if it could be related to the cover art cache... I have that turned on, and if I browse through my videos, I noticed the memory goes up a few 100MB. If that is per extender, that could add alot of memory usage.

Thanks,
Jeff
Reply With Quote
  #5  
Old 02-07-2009, 02:34 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
My current thinking is that it is iMovies, or one of the new info screens. I already have my cache turned off for all my extenders so for me at least this isn't the problem.
Reply With Quote
  #6  
Old 02-07-2009, 03:08 PM
MeInMaui's Avatar
MeInMaui MeInMaui is offline
SageTVaholic
 
Join Date: Feb 2005
Location: Maui. HI
Posts: 4,203
I moved this discussion to its own thread so it doesn't clutter up the bug report thread. If this does turn out to be a bug in SageMC, just post the findings there. Thanks.

Aloha,
Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full."
- Nikolaus (4yrs old)
Reply With Quote
  #7  
Old 02-07-2009, 03:52 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
Will Do...

That test was a bomb... I navigated through various screens, got the memory up to 800MB in about 15 minutes and the service would not even stop...

I just tried with iMovie,AMG, and 24hour skip plugin loaded, and it seems to be running pretty well..

I scrolled through the video screen, iMovie screen, played various video files and the memory is running about 250MB..

I will let this run over night and see how it turns out..

Thanks,
Jeff
Reply With Quote
  #8  
Old 02-07-2009, 05:51 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Quote:
Originally Posted by MeInMaui View Post
I moved this discussion to its own thread so it doesn't clutter up the bug report thread. If this does turn out to be a bug in SageMC, just post the findings there. Thanks.

Aloha,
Mike
My fault, I'm sorry Mike.

It's interesting to hear that the test may not be giving the results we postulated. I hope something changes overnight or I'm going to be really confused.

One question, are you using the fanart feature?
Reply With Quote
  #9  
Old 02-08-2009, 06:57 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
I have the fanart turned on and have a good amount of TV and Movie fan art setup.

I let it run for a few hours last night and the memory started climbin to about 500MB after about 30 minutes.

I shutdown sagetv and turned off albumn art cache and restarted everything. I let it run overnight recording and watching a few movies and so far it as peaked at 365MB.

Did you say you had your albumn art cache disabled?

Thanks,
Jeff
Reply With Quote
  #10  
Old 02-08-2009, 08:15 AM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
I have the same issue with b12 and only fanart turned on (using centrally stored option). I don't have any other stvi's loaded on top of SageMC. My service would crash every other day. I run a script each night to restart the service which is a good workaround for me for now but obviously not ideal.

Mike - can I provide any additional information or log files, etc to help you debug this?
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #11  
Old 02-08-2009, 08:35 AM
hemicuda's Avatar
hemicuda hemicuda is offline
Sage Icon
 
Join Date: May 2006
Location: north of Chattanooga, Tennessee
Posts: 1,118
I'm not running MC, but I've seen this with 6.4.8 as well. Takes a few days to hit the java heap size I set in the registry. Then things get sluggish. we'll see what happens when the HD200 gets here and I update to 6.5
__________________
Server: MS Win7 SP1; FX8350 (H2O cooled); 8GB RAM; Hauppauge HVR-7164 (OTA); HVR-885 (OTA); SageTV 9.1.5.x; 12+TB Sage Storage

Clients: HD300 x2; HD200 x2; Placeshifter

Service: EPB Fiber (1Gb); OTA (we "cut the cord"); Netflix, Hulu, etc.
Reply With Quote
  #12  
Old 02-08-2009, 08:39 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
Do you happen happen to have your albumn cache enabled? I am wondering if it is related to that. It seems to default on and is set to 1000. I have a feeling that the cache is building up and consuming all of the memory in the JVM.

I have turned that off on all of my extenders and placeshifters and have been testing running all extenders with bluerays streaming and going through the video library on all of them, and the memory has stayed about 400MB.

Thanks,
Jeff
Reply With Quote
  #13  
Old 02-08-2009, 08:42 AM
hemicuda's Avatar
hemicuda hemicuda is offline
Sage Icon
 
Join Date: May 2006
Location: north of Chattanooga, Tennessee
Posts: 1,118
have to find out where that is. I do know that it's reloading folder.jpg images about every other screen I browse. go down 2, come back up 2 and they're not cached.
__________________
Server: MS Win7 SP1; FX8350 (H2O cooled); 8GB RAM; Hauppauge HVR-7164 (OTA); HVR-885 (OTA); SageTV 9.1.5.x; 12+TB Sage Storage

Clients: HD300 x2; HD200 x2; Placeshifter

Service: EPB Fiber (1Gb); OTA (we "cut the cord"); Netflix, Hulu, etc.
Reply With Quote
  #14  
Old 02-08-2009, 08:45 AM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by jphipps View Post
Do you happen happen to have your albumn cache enabled? I am wondering if it is related to that. It seems to default on and is set to 1000. I have a feeling that the cache is building up and consuming all of the memory in the JVM.

I have turned that off on all of my extenders and placeshifters and have been testing running all extenders with bluerays streaming and going through the video library on all of them, and the memory has stayed about 400MB.

Thanks,
Jeff
That could be the issue. What setting do I use to turn caching off?
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #15  
Old 02-08-2009, 08:48 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
You are running the Default STV? What is your JVM heap size set to?

I have mine set to 1024MB. I have tried running with the default STV and the memory seems to stay low about 300MB and not increase. I am running sage 6.5 with 2xHD100 and 1xHD200 with SageMC on all.

Thanks,
Jeff
Reply With Quote
  #16  
Old 02-08-2009, 08:50 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
The setting is under Setup\SageMC\Enhancements\Cache Album Art

I found is was best to shutdown all extenders, sagetv server, edit the client files directly and restart everything to start out clean...

Thanks,
Jeff
Reply With Quote
  #17  
Old 02-08-2009, 12:32 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I have the album art cache turned off on at least one of my extenders. I actually don't have any music in Sage so I have absolutely no reason to use it. I had forgotten that this is a client setting so I'll check all the clients.
Reply With Quote
  #18  
Old 02-09-2009, 05:48 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
From what I have seen, that settings seems to be for caching all thumbnails, video and music...

I don't think a PC client would matter because they are running thier own JVM on the client PC.

I have been up for 1 day 10 hours and has been pretty steady at 400-500MB. It did peak to 800MB at some point..

Thanks,
Jeff
Reply With Quote
  #19  
Old 02-09-2009, 10:19 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Interesting. Mine bombed today, after several restarts yesterday for some fine tuning, after using 1.5GB of memory. I sure wish I could figure out the difference. I'm back to restarting the service every night for now.
Reply With Quote
  #20  
Old 02-10-2009, 12:30 AM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
One thing you could try is a setting in your sage.properties file:

allow_periodic_explicit_gc=true

I read alot of posts that said this fixed thier high memory usage. It is supposed to have garbage collection run more often to free memory...

Thanks,
Jeff
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV Process Memory Leak? brandypuff SageTV Software 13 10-14-2008 05:14 PM
SageTV client memory leak? hocky98 SageTV Software 18 12-08-2006 01:32 AM
Memory leak in Sage? abasu2003 SageTV Software 5 03-27-2005 06:41 PM
Possible Memory Leak? Opopanax SageTV Software 6 02-04-2005 04:28 PM
Memory leak in Sage 2 Teg SageTV Software 31 12-14-2004 07:57 AM


All times are GMT -6. The time now is 12:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.