|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#81
|
||||
|
||||
Quote:
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#82
|
|||
|
|||
OK, one more problem. I seem to have a memory leak. I'm running the latest beta of SageTV on Vista and SJQ 1.4.
After initially loading Sage it uses 200-250MB...after an hour or two its up to 1GB+ and eventually it stalls the system. I removed the SJQ file from the start_at_load line and sage is now stable at around 250MB. My SJQ rules file is simple ----------------------------------- ###__Rule 1 = IsTV: true = IsScheduledRecording: true $ Filename: .mpg = IsActivelyRecording: false COMMFLAG "C:\Program Files\SageTv\Comskip\runcom.bat" "%f%" ###__Rule 2 = IsTV: true = IsScheduledRecording: true = IsActivelyRecording: false = FileExists: %d%\%b%.txt TRANS "__TRANSCODE" "MPEG4-High Quality AVI" true ----------------------------------- and I have a very small number of recordings (~20) and only a few are recorded each day. I'm also running the latest java, 1.6.0_06 Any ideas where I should start debugging this? Thanks Graham |
#83
|
|||
|
|||
Quote:
It's hard to track the cause - I mean I do see where each run of SJQ is increasing the mem usage of the process, but is that because the Java garbage collector hasn't ran yet (or recently)? Each SJQ run immediately adds about 300kb to the mem usage of the process. This would be variable based on the size of one's media library. And mine's bigger than yours so I wouldn't expect anything more on your instance. But I now see as I write this that the mem usage just dropped about 260kb before increasing another 30kb. I'm also running the web server and my SRE plugin so those numbers are going to move around while those plugins are doing their thing - and of course using Sage itself is going to play with these numbers so I can't really confirm (or deny a mem leak) in SJQ. I'll take a quick look at the code tonight or tomorrow night to see if the obvious spots where I'd hold onto objects unnecessarily are not an issue, but I figure I'd have heard from others if such a leak existed in the code. My guess is that something isn't interacting with Vista nicely. It may be your JRE (unlikely) or SageTV (less unlikely, but still unlikely) or SJQ (more likely than the former, but not as likely as the following) or the JDBC driver used by SJQ (the most likely culprit). I run on XP, test on XP and have never tried my code on Vista so a Vista incompatibility certainly isn't impossible nor would it be all that surprising. I'd start by enabling SJQ again and restarting Sage. See if you can reproduce the issue constantly. Also, did SJQ happen to trigger a process that may have caused the issue? Perhaps a transcoding job went crazy? Maybe a comskip process? Perhaps a comskip process dumped a whole bunch of output, which may choke SJQ/SQLite since SJQ captures all output and stores it in the database. As you can see there are many variables. Start by trying to isolate the cause - make sure it's just SJQ and not a process that it may have triggered (make sure your tests will always return false so that it never triggers a process and see how long it goes). If it continues to happen and SJQ never triggers a process then at least I can then start to look at my source code and see if there's anything obvious that I can find. With that said, I've personally had SJQ run for weeks - even months at a time - without issue (though I've never actually tracked the mem usage of SageTV). I run with 2GB of RAM in my system - plenty, but not so much that such a massive mem leak in the SJQ code wouldn't be seen on my system. |
#84
|
|||
|
|||
I was able to consistently reproduce it. For now, let me try removing all of my rules and see if this still happens when SJQ actually has nothing to do
|
#85
|
|||
|
|||
OK, I tried running it with a blank rules.sjq file and leaving SageTV totally alone in windowed mode.
After a couple of hours it was up to 512MB of memory used and increasing at a few MB every mins Remove the SJQ from the start line of the properties file, couple of hours its steady at 250MB. Any ideas how to further debug? would logs help? |
#86
|
|||
|
|||
Quote:
|
#87
|
|||
|
|||
Quote:
If you do decide to start installing older versions please completely remove any existing version before installing another. |
#88
|
|||
|
|||
Its set to
Max time between scans: 5 mins When: After end of each recording Delay: 1 min Last run: Thu Jul 03 10:01:50 EDT 2008 Next run: Thu Jul 03 10:07:51 EDT 2008 Current status: Sleeping Very strange! |
#89
|
|||
|
|||
Quote:
That explains the constant mem increase every five minutes, though doesn't explain the cause of it. If you could, please try older versions of SJQ (with the 5 min max setting) and see if any older version eliminates the behaviour. |
#90
|
|||
|
|||
Slugger,
One thing that I have noticed is that if I display the log the memory in Sage keeps increasing and seems to stay there. I expect it to increase in IEExplorer which it does but then memory usage goes down in IE but stays up in Sage. This appears to be the Problem. I ran ok with no memory increase without displaying the log. when I displayed the log this is what happens. 80,000 - Starting memory 281,000 - 1rst Display of log 363,000 - 2nd Display of log 371,816 - 3rd Display memory for Sage is at 371,812 using no CPU. No cleanup appears to have been done.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 07-03-2008 at 10:02 AM. |
#91
|
|||
|
|||
maybe i'm missing something, but i've tried 1.0 and 1.1 and i just keep getting
Thu 7/3 12:31:41.103 ERROR Loading startup runnable extension of:java.lang.ClassNotFoundException: net.sourceforge.sagetv.sjq.SageJobQueue are the install instructions different for the older vers? I didn't modify the .properties file |
#92
|
|||
|
|||
Quote:
I believe the properties setting did change I am not sure in what version.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#93
|
|||
|
|||
NYPlayer...are you running Vista?
I get this problem even if I just leave Sage at the main screen and don't display ANYTHING |
#94
|
|||
|
|||
XP Pro. I run SageTV Minimized on my server. I installed SJQ on the client on my server so if something goes wrong all I have to do is restart SageTV not the service.
BTW even if you do not display the Log... It might still have something to do with logging. I noticed you check every 5 minutes. Therefore you are logging more often. I know slugger had changed the logging I am not sure when best to wait till he comes on. I am sure he can fix it.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 07-03-2008 at 11:16 AM. |
#95
|
|||
|
|||
Quote:
I'm inclined to believe the problem is related to the db based logging scheme I implemented in v1.1.0 (though I'm not 100% convinced at this point). If you can setup and get 1.0.1 to run and it doesn't exhibit the behaviour then I'll know where to start digging. Though not convinced it's the logging, I'd be very pleased to find out it is since that should be relatively easy for me to track down. Before I speculate anymore, I'll await your results. |
#96
|
|||
|
|||
ok i'm running 1.0.1 with a blank ruleset, the 5 minute setting still (i didn't even figure out where to modify this in ver 1.0.1???)
No memory leak...its been running for 5 hours and i'm at 230MB |
#97
|
|||
|
|||
Quote:
I've gone over my db code and I'm fairly certain I'm close()ing all the JDBC objects after I use them, etc. I did upgrade the JDBC driver to the latest available and it seems to have helped. I don't see the mem necessarily dropping, but multiple requests for data from the db don't seem to be using new chunks of mem each time (i.e. the mem doesn't increase/doesn't increase as fast). Can you please give 1.5.0b2 a try and let me know the results? Do the samething - 5 min interval with tests that won't trigger processes. Windows Installer (WinXP and below) ZIP file (Vista, Linux, Mac) NOTE: If installing via the zip, please delete the following files after stopping SageTV and before unzipping this new build: SageTV\sqlite*.dll SageTV\libsqlite*.so SageTV\JARs\sqlite*.jar The Windows installer does this cleanup automatically. Please report back the results. |
#98
|
|||
|
|||
Quote:
|
#99
|
|||
|
|||
So far so good on 1.5.0b2. A day without a major increase in memory. I'll try and repopulate the rules file tonight.
|
#100
|
|||
|
|||
That's good to hear. Same results I'm seeing with 1.5.0b2. I'll wait until you post a result with your ruleset implemented, but I think the upgraded JDBC driver was the key to this issue. After I get a final word from you, I'll package up 1.5.0b2 and release it as the official 1.5.0 either tomorrow or Monday evening.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin: Sage Job Queue (SJQ) v3 | Slugger | SageTV Customizations | 1355 | 07-25-2013 07:44 AM |
Sage Job Queue (SJQ) new release notifications | Slugger | Customization Announcements | 3 | 12-17-2009 09:59 AM |
Sage Job Queue Completed tasks problem | raffmanlt | SageTV Customizations | 2 | 08-18-2009 07:34 PM |
Comskip Monitor VS Sage Job Queue SJQ | personalt | SageTV Customizations | 6 | 03-02-2009 10:27 AM |
Plugin: SJQ v1.1.0RC1 Available - Testers Needed | Slugger | SageTV Customizations | 35 | 04-21-2008 08:12 AM |