SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-16-2016, 12:39 PM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
Server Lockups with 3 or more HD300s connected

Hello:

So recently I added a 3rd HD300 to my setup for our guest bedroom, which is now getting used a lot more.

However since then I keep experiencing circle's of death / server lock ups, so bad that the service itself won't shut down and I have to actually reboot the whole machine.

I'm running Sage v7 still, on windows 7 ultimate (64bit), Java VM heap size set to 1020mb.

when it happens I can see that the memory usage for the SageTVService has gone well above 1100mb.

I only run a few plugins, play on, and imdb search / metadata tools, no comskip or crazy ui mods or anything.

I suspect I'm running into the old problem of the server simply not being able to support more than 2 extenders at a time on Windows. . .any thing I can do? I'd rather not switch over to linux (although I may have to I guess).

Thoughts?

Sean
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #2  
Old 04-16-2016, 02:00 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Does sounds like the heap is too small. The biggest thing that takes up space is fanart. Turning it off might seriously smooth it out until you can sort out what you're wanting to do long term. Honestly, if I'm building a system from scratch right now, I'm going to use Linux for it - and I'm really not familiar with Linux at all - it's just that 64-bit jvm is such a huge benefit in my eyes, especially for a fanart heavy setup.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #3  
Old 04-16-2016, 02:12 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
Does sounds like the heap is too small. The biggest thing that takes up space is fanart. Turning it off might seriously smooth it out until you can sort out what you're wanting to do long term. Honestly, if I'm building a system from scratch right now, I'm going to use Linux for it - and I'm really not familiar with Linux at all - it's just that 64-bit jvm is such a huge benefit in my eyes, especially for a fanart heavy setup.
Sort of off topic, but... I wonder windows 10 Bash shell (Ubuntu) integration if you can run SageTV 64bit under windows, and get the 64 large heap benefits.
Reply With Quote
  #4  
Old 04-16-2016, 02:25 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by stuckless View Post
Sort of off topic, but... I wonder windows 10 Bash shell (Ubuntu) integration if you can run SageTV 64bit under windows, and get the 64 large heap benefits.
I can speculate that you probably won't suddenly have Windows capture devices showing up as v4l2 devices, but it would be very interesting if at least network based devices would work.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #5  
Old 04-16-2016, 02:43 PM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
Yeah I mean I could switch to linux, but then it ends up being a dedicated piece of hardware, whereas right now my server i also use a workstation of sorts for media processing and what not. Plus playon, and other things. . .

Curious though I wonder if I could run a linux VM on windows and things would work well. . . (i seriously doubt the drivers for hardware would all work correctly. . but maybe).

It's too bad you can't have a master/slave server-setup. . . then you could just have multiple instances of the server running to solve that problem regardless of the JVM, and just have the master act as bridge/message engine. . . hmmm.
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #6  
Old 04-16-2016, 02:45 PM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
I'll definitely try shutting off the fan art stuff.

Right now with just 1 extender turned on. . .(and someone watching tv), the memory usage of the server is ~524MB.
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #7  
Old 04-16-2016, 04:18 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by sdsean View Post
I'll definitely try shutting off the fan art stuff.

Right now with just 1 extender turned on. . .(and someone watching tv), the memory usage of the server is ~524MB.
It's hard to just look at the mem usage. Java will just keep eating memory as it needs it, but eventually the garbage collector will kick in. So if you set a max jvm size of 1.2 gigs java will eventually reach that, but it doesn't mean it's out of memory... just means that now it will start having to run the garbage collector more often. Really until you get an actual OutOfMemory error in the JVM... you haven't actually run out memory, even if it's consuming the full amount.
Reply With Quote
  #8  
Old 04-16-2016, 04:55 PM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
well yeah of course. . . and it may not be a direct memory usage thing either, but it's pretty clearly IO related.. . the behavior is super consistent.

After 24-36 hours: Mem usage grows above what should be the max
When it's close to this I can notice on my extenders that the frame rate slows down slightly even though I know for sure it's not a bandwidth problem and it's all hardwired.

From there someone goes and tries to change a channel or start recording something new.

At that point one of the HD-PVRs kicks on just fine, and it all looks like the recording is happening, and sure enough I can even see data getting written to the given TS file.

But then the Circle of Death appears. . .

At that point, like i said, I can't shut down the service, it just totally fails to respond.
And if I say, reset the given HD-PVR at that point, all the sudden my whole system slows to a crawl so much that even taskmanager or procexp cannot paint to show me what's happening.

Either way I'm basically forced to reboot the whole PC.

And this only seems to happen if I have more than 2 extenders running. Never had this problem with just 2.

I'll enable debug-logging and see what else I can see.
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned



Last edited by sdsean; 04-16-2016 at 05:06 PM. Reason: misspell
Reply With Quote
  #9  
Old 04-16-2016, 05:07 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by sdsean View Post
well yeah of course. . . and it may not be a direct memory usage thing either, but it's pretty clearly IO related.. . the behavior is super consistent.

After 24-36 hours: Mem usage grows above what should be the max
When it's close to this I can notice on my extenders that the frame rate slows down slightly even though I know for sure it's not a bandwidth problem and it's all hardwired.

From there someone goes and tries to change a channel or start recording something new.

At that point one of the HD-PVRs kicks on just fine, and it all looks like the recording is happening, and sure enough I can even see data getting written to the given TS file.

But then the Circle of Death appears. . .

At that point, like i said, I can't shut down the service, it just totally fails to respond.
And if I say, reset the given HD-PVR at that point, all the sudden my whole system slows to a crawl so much that even taskmanager or procexp can paint to show me what's happening.

Either way I'm basically forced to reboot the whole PC.

And this only seems to happen if I have more than 2 extenders running. Never had this problem with just 2.

I'll enable debug-logging and see what else I can see.
I was having this after upgrading to V9. The only solution that worked for me was to blow away the wiz.bin and start over. I didn't notice a problem before I upgraded but it could have been there and just noticeable after the upgrade.

I'm working on setting up a linux vm along side my Windows VM on unRAID for the linux version of SageTV. I have to have both because my AVerMedia Duets don't have linux drivers so I'm going to use the current Windows SageTV install with the windows drivers to provide them as network encoders. HDHomeRuns already work in linux for me on a test I ran several months ago. Just have to upgrade the linux kernel so the HDPVRs and HVR-2250 are recognized natively. Hope to get time next month.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #10  
Old 04-16-2016, 07:34 PM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
Well Bob if you get that working let me know. .. if I could setup a beefy enough linux vm on Windows and get the drivers all to bridge right (serial tuning and the hd-pvrs), then that would be ideal for me so that I can still stay on a windows machine. Plus a vm would be easier to deal with in terms of reboots and what not.

unraid looks more to me like a partitioned boot though. . . am I reading the docs wrong?
I was thinking more like running VMware with a linux ubuntu or redhat image.
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #11  
Old 04-16-2016, 09:27 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by sdsean View Post
Well Bob if you get that working let me know. .. if I could setup a beefy enough linux vm on Windows and get the drivers all to bridge right (serial tuning and the hd-pvrs), then that would be ideal for me so that I can still stay on a windows machine. Plus a vm would be easier to deal with in terms of reboots and what not.

unraid looks more to me like a partitioned boot though. . . am I reading the docs wrong?
I was thinking more like running VMware with a linux ubuntu or redhat image.
I've got ESXi on another server with an unRAID and Windows VM running SageTV on it. I had 4 SageTV servers before my job got down sized last November - I now have 3 servers. Now that I have a new job I'm re-configuring my network to prolong the life of my HDDs as long as I can.

unRAID is a NAS primarily but they have added VMs and dockers to v6. The problem with running SageTV on a docker is the drivers have to be installed on the boot OS (unRAID) to work natively with the SageTV docker. Now there is a plugin that will compile new linux kernels for unRAID to have some of the media tuner drivers but I decided that I want it to be just a VM platform since I have to have at least one Windows VM for my AVerMedia Duets. So I'm going the linux VM route on unRAID along side the Windows VM. I may even have a second unRAID installed on the same box as a VM and use the BOOT unRAID as a virtualization platform only. I can't use my ESXi 5.0 on my new MB because it is a dual CPU MB and the free version of ESXi 5.0 will only work with a SINGLE physical CPU (I believe even the more current free versions are also limited this way).

My new MB and dual CPUs has dual 8 core CPUs with hyperthreading (32 theads) and 128GB memory. My other unRAID servers are going to be shut down completely most of the time to save HDDs as long as possible rather then running the servers and just spinning down the drives but leaving power to the drives in standby mode. I got the CPUs and memory off eBay for greatly reduced prices.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #12  
Old 04-17-2016, 01:45 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by sdsean View Post
Yeah I mean I could switch to linux, but then it ends up being a dedicated piece of hardware, whereas right now my server i also use a workstation of sorts for media processing and what not. Plus playon, and other things. . .

Curious though I wonder if I could run a linux VM on windows and things would work well. . . (i seriously doubt the drivers for hardware would all work correctly. . but maybe).

It's too bad you can't have a master/slave server-setup. . . then you could just have multiple instances of the server running to solve that problem regardless of the JVM, and just have the master act as bridge/message engine. . . hmmm.
Going off your Linux VM on a windows host idea. It is possible to do a sort of master slave if you like. On windows, you run SageTV as a network encoder, so it has access to the tuners (this is if you have local tuners - if everything is a network encoder already, than it isn't needed). In the VM, you have Linux installed, running the 64-bit server, and THIS is your sagetv server that clients/extenders connect to.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #13  
Old 04-19-2016, 10:38 AM
valnar valnar is offline
Sage Icon
 
Join Date: Oct 2003
Posts: 1,252
Send a message via ICQ to valnar
Check this out too, what happened to me.
http://forums.sagetv.com/forums/showthread.php?t=62873
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
HD200 slow when connected to server ChrisNH SageTV Media Extender 1 09-25-2013 09:52 AM
SageTV Client lockups and associated server side error Surtr SageTV Software 1 05-28-2007 06:55 AM
Random Server Lockups deliverer SageTV Software 0 12-05-2005 02:02 PM
Problem getting the sage client connected to the sage server modurn SageTV Software 1 07-21-2005 10:37 AM


All times are GMT -6. The time now is 12:27 PM.


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