SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-03-2013, 01:19 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
slow UI and high java mem usage...

I'm trying to diagnose/fix my slow UI issues.

On my extenders the menus, at times, are slow and unresponsive. Also
sometimes starting a show takes a while and I get the spinning circle of death for a bit. Navigating my video library is excruciating!

The server is an older core2duo (I believe). I'm running win7 32 bit with 4GB (DDR2!) ram. The OS drive is an SSD and I'm running 4 recordings drives as 2 drives in mirror mode (intel software based).
I've upped the java heap, in the past, to the max it will accept (I think) -1152MB.
I still get the java heap warnings occasionally. My wiz.bin is about 25MB (years and years worth!) I'm running the stock STVI with a small amount of plugins.
BMT - web interface
infopupup/callerid
jetty webserver
sagealert
SAD
SJQ
SJQ webui
SRE
sage mobile web
sage web interface
java heap monitor
comskip playback
phoenix fanart
Plus a couple more..

What are the big users of the heap? Is the fan art killing me? I know the fanart directory is about 2.3GB

What's the best way to diagnose this?

I'm tempted to upgrade to a newer system MB with DDR3 and more memory and win7 64. I'll lose my firewire recording... but I think I can live with that.

A weird possible problem I do see on one of my recording drives is it takes a long time to do any sorting in explorer. the other drive is fine! I was never able to get to the bottom of it.

I'd really not like to upgrade the dedicated sage machine if I can do something else! Would I have to live without fan art?



Jim
Reply With Quote
  #2  
Old 06-03-2013, 08:31 PM
ojosch ojosch is offline
Sage Advanced User
 
Join Date: Oct 2007
Location: UTAH
Posts: 83
I had that same issue on mine, so as per advice found someplace here, I disabled all plugins, and it fixed the lag, then I re-enabled them one by one and figured out which one was causing it.

I don't remember which it was now as it was awhile ago but at any rate, that is how I isolated the cause.

Hope this helps...
Reply With Quote
  #3  
Old 06-03-2013, 10:44 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by jbuszkie View Post
I'm trying to diagnose/fix my slow UI issues.

On my extenders the menus, at times, are slow and unresponsive. Also
sometimes starting a show takes a while and I get the spinning circle of death for a bit. Navigating my video library is excruciating!

I still get the java heap warnings occasionally. My wiz.bin is about 25MB (years and years worth!) I'm running the stock STVI with a small amount of plugins.
What are the big users of the heap? Is the fan art killing me? I know the fanart directory is about 2.3GB

What's the best way to diagnose this?

I'd really not like to upgrade the dedicated sage machine if I can do something else! Would I have to live without fan art?



Jim
I too am noticing this behavior...and my system/plugins/wizbin size are all similar to yours. I'm also getting lots of blue screen crashes, which mostly occur when fast forwarding recordings on the server (as opposed to when FF from emxtenders). I haven't been able to solve it. What's your video card on your server - an on-board, ATI card, on a Gigabyte MB? Because that's my system, and I think there's possibly a problem with the ATI drivers, or some kind of memory issue between resources.
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson

Last edited by tvmaster2; 06-03-2013 at 10:58 PM.
Reply With Quote
  #4  
Old 06-04-2013, 06:08 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jbuszkie View Post
I'm trying to diagnose/fix my slow UI issues.

On my extenders the menus, at times, are slow and unresponsive. Also
sometimes starting a show takes a while and I get the spinning circle of death for a bit. Navigating my video library is excruciating!

The server is an older core2duo (I believe). I'm running win7 32 bit with 4GB (DDR2!) ram. The OS drive is an SSD and I'm running 4 recordings drives as 2 drives in mirror mode (intel software based).
I've upped the java heap, in the past, to the max it will accept (I think) -1152MB.
I still get the java heap warnings occasionally. My wiz.bin is about 25MB (years and years worth!) I'm running the stock STVI with a small amount of plugins.
BMT - web interface
infopupup/callerid
jetty webserver
sagealert
SAD
SJQ
SJQ webui
SRE
sage mobile web
sage web interface
java heap monitor
comskip playback
phoenix fanart
Plus a couple more..

What are the big users of the heap? Is the fan art killing me? I know the fanart directory is about 2.3GB

What's the best way to diagnose this?

I'm tempted to upgrade to a newer system MB with DDR3 and more memory and win7 64. I'll lose my firewire recording... but I think I can live with that.

A weird possible problem I do see on one of my recording drives is it takes a long time to do any sorting in explorer. the other drive is fine! I was never able to get to the bottom of it.

I'd really not like to upgrade the dedicated sage machine if I can do something else! Would I have to live without fan art?



Jim
I run most of what you are running, with the exception of SJQ and callerid. I run at 764MB heap.

A few things will affect the amount of heap used/required.
1. Number of extenders. Extenders are basically "server side" client that send their display across to the remote extender... so each new concurrent extender is going to increase the amount of heap being used.
2. Number of plugins. Each plugin is going to require a little extra memory.
3. Fanart. It's obvious that loading images (and loading large images) is going to increase the memory requirements. But, just because you have 2.3 gb of fanart, doesn't mean that you'll be loading ALL of that into memory at once.

In terms of sluggish UI... There are a couple of culprits...
1. Is your fanart local to the server/client? If you are going over the network to access fanart, it will be slow, even on a fairly fast network. There are multiple threads of people talking about caching fanart, using ramdisks, etc.
2. You can remove the entire SAGE_HOME/userdata/Phoenix/cache/ directory, and then allow the fanart to be rebuilt again. There were changes a few builds back in Phoenix (which is used for fanart) that saves the files in jpg instead of png which resulted in the cache being substantially smaller. This won't affect HEAP so much, but will make it faster to load fanart.
3. Try running Phoenix 2, and go into the settings and tell it to prescal fanart. (Just running P2 will probably make you system more responsive)
4. Lots of Disk IO. I've seen occasionally when I'm recordings 2 shows, comskip is running, and then I'm playing back a show, that I'll sometimes get a spinning circle for a few seconds, since there is lots of disk I/O
5. Slow network. I had a faulty network port on a router where lots of packets were being dropped... i replaced the router, and everything has been fine.

Now, if you are seeing BSOD, then you have a hardware problem. There is no way that Java is going to produce a BSOD on it's own. Typically is java fails or SageTV crashes, you'll see javacore files lying around, but the process simply dies, it will not create a BSOD.
Reply With Quote
  #5  
Old 06-04-2013, 08:57 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by stuckless View Post
I run most of what you are running, with the exception of SJQ and callerid. I run at 764MB heap.

A few things will affect the amount of heap used/required.
1. Number of extenders. Extenders are basically "server side" client that send their display across to the remote extender... so each new concurrent extender is going to increase the amount of heap being used.
I have 3 extenders. 2 are usually powered on all the time. But usually only one is doing anything at a time. If they are just sitting idle, are they still using a bunch of heap? and how much do they use? Is it quantified anywhere? or does it depend on what they are actually doing?
Also.. Does the number of recordings and number of imported videos play into this as well? I have over 3TB of local shows and probably over 8TB more on my unraid NAS.(which is Gig ethernet)

Quote:
Originally Posted by stuckless View Post
2. Number of plugins. Each plugin is going to require a little extra memory.
3. Fanart. It's obvious that loading images (and loading large images) is going to increase the memory requirements. But, just because you have 2.3 gb of fanart, doesn't mean that you'll be loading ALL of that into memory at once.
Maybe I'll try to disable the fan art..

Quote:
Originally Posted by stuckless View Post
In terms of sluggish UI... There are a couple of culprits...
1. Is your fanart local to the server/client? If you are going over the network to access fanart, it will be slow, even on a fairly fast network. There are multiple threads of people talking about caching fanart, using ramdisks, etc.
It is local on the OS (SSD) drive and I have a ram disk cache for it as well
Quote:
Originally Posted by stuckless View Post
2. You can remove the entire SAGE_HOME/userdata/Phoenix/cache/ directory, and then allow the fanart to be rebuilt again. There were changes a few builds back in Phoenix (which is used for fanart) that saves the files in jpg instead of png which resulted in the cache being substantially smaller. This won't affect HEAP so much, but will make it faster to load fanart.
I'll try that too...
Can someone refresh my memory.. Is there an easy way to disable all the plugins such then I can enable them again without having to remember which one I had installed?
Quote:
Originally Posted by stuckless View Post
3. Try running Phoenix 2, and go into the settings and tell it to prescal fanart. (Just running P2 will probably make you system more responsive)
I didn't know there was a phoenix 2..
Quote:
Originally Posted by stuckless View Post
4. Lots of Disk IO. I've seen occasionally when I'm recordings 2 shows, comskip is running, and then I'm playing back a show, that I'll sometimes get a spinning circle for a few seconds, since there is lots of disk I/O
The only issue is starting a show.. for the most part it's perfectly fine after that. (well and the UI being slow)
Quote:
Originally Posted by stuckless View Post
5. Slow network. I had a faulty network port on a router where lots of packets were being dropped... i replaced the router, and everything has been fine.
Since it's fine during playback, I think the network is fine!
Quote:
Originally Posted by stuckless View Post
Now, if you are seeing BSOD, then you have a hardware problem. There is no way that Java is going to produce a BSOD on it's own. Typically is java fails or SageTV crashes, you'll see javacore files lying around, but the process simply dies, it will not create a BSOD.
No BSOD.. The server stays running. But I also don't use the server as a display. Had issues with that as well, so I just hooked up my old HD200 instead.
Reply With Quote
  #6  
Old 06-04-2013, 08:59 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by tvmaster2 View Post
What's your video card on your server - an on-board, ATI card, on a Gigabyte MB?
I'm not using the server as a frontend. I had the wife kept having issues so I just put an extender. So I'm not displaying shows on the server..
Reply With Quote
  #7  
Old 06-04-2013, 11:37 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by stuckless View Post
Now, if you are seeing BSOD, then you have a hardware problem. There is no way that Java is going to produce a BSOD on it's own. Typically is java fails or SageTV crashes, you'll see javacore files lying around, but the process simply dies, it will not create a BSOD.
any idea how to start troubleshooting BSOD? It has been happening ever since I rebuilt my system using a SSD as the boot/Sage drive, but I can't see how that would be a problem. Suggestions on how to troubleshoot hardware to make this go away would really help - thanks.
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #8  
Old 06-04-2013, 12:06 PM
samgreco samgreco is offline
Sage Expert
 
Join Date: Jul 2004
Location: Villa Park, IL (Outside Chicago)
Posts: 617
Quote:
Originally Posted by tvmaster2 View Post
any idea how to start troubleshooting BSOD? It has been happening ever since I rebuilt my system using a SSD as the boot/Sage drive, but I can't see how that would be a problem. Suggestions on how to troubleshoot hardware to make this go away would really help - thanks.
There's an app called Who Crashed that is great for "reading" the dump files. And that can really help finding the culprit. Sometimes a corrupt driver file can cause BSODs as well as bad hardware. I've even seen some very badly behaved software do it.
Reply With Quote
  #9  
Old 06-04-2013, 01:31 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by samgreco View Post
There's an app called Who Crashed that is great for "reading" the dump files. And that can really help finding the culprit. Sometimes a corrupt driver file can cause BSODs as well as bad hardware. I've even seen some very badly behaved software do it.
ok, so this app is for finding driver errors, as opposed to hardware errors?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #10  
Old 06-04-2013, 01:33 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jbuszkie View Post
I'm not using the server as a frontend. I had the wife kept having issues so I just put an extender. So I'm not displaying shows on the server..
I am curious... are you by any chance starting the SageTV UI in the server it will share the heap with the service. I know some plugins like CMT require that you run the UI unless you use a client where you can run CMT from.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #11  
Old 06-04-2013, 01:52 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by nyplayer View Post
I am curious... are you by any chance starting the SageTV UI in the server it will share the heap with the service. I know some plugins like CMT require that you run the UI unless you use a client where you can run CMT from.
I'm not running Sage as a service... Maybe I should?? I guess that would save me some heap?

Not sure if I'm using CMT or not... If I have BMT.. am I using CMT?
Reply With Quote
  #12  
Old 06-04-2013, 01:54 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jbuszkie View Post
I'm not running Sage as a service... Maybe I should?? I guess that would save me some heap?

Not sure if I'm using CMT or not... If I have BMT.. am I using CMT?
CMT is separate. You should try as a service as I have found the service to use less memory.... no rendering of ui etc...
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #13  
Old 06-04-2013, 06:57 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I have similar issues but I have more extenders - about 8 or so currently connected but rarely do I use more than 3-4 simultaneously. IMHO it looks like there is a memory leak and after all of the extenders have been on it can cause Sage to bog down. This can sometimes be cleaned up by shutting down extenders but occasionally a restart of the SageTVService or a reboot is required.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #14  
Old 06-04-2013, 08:07 PM
samgreco samgreco is offline
Sage Expert
 
Join Date: Jul 2004
Location: Villa Park, IL (Outside Chicago)
Posts: 617
Quote:
Originally Posted by tvmaster2 View Post
ok, so this app is for finding driver errors, as opposed to hardware errors?
No. It reads the dump file created when Windows chokes from a BSOD. It can tell you many things. As longs as Windows writes a dump file, it will read it and give you clues as to what caused it.

It does not test anything. Before you assume that your hardware is bad, check with this app and see exactly WHAT is causing the crash. If it's a hardware driver or an I/O error related to some hardware, replace the driver and see if the problem is resolved. If not, then get a hardware testing app and put the memory, hard drive, mainboard through some tests and see what you get.
Reply With Quote
  #15  
Old 06-05-2013, 12:31 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
thanks
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #16  
Old 06-06-2013, 12:17 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jbuszkie View Post
I'm not running Sage as a service... Maybe I should?? I guess that would save me some heap?

Not sure if I'm using CMT or not... If I have BMT.. am I using CMT?
I did some testing on my Test Server and Starting the Sage ui used up to 2x the memory of the Service.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #17  
Old 06-06-2013, 12:48 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
I'll have to try this....

Jim
Reply With Quote
  #18  
Old 10-16-2013, 12:02 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
digging up an old thread....

But when I tried to switch to using a service.. I got the ui config thing again?
Why doesn't it remember what I had when I was not using Sage as a service?

Jim
Reply With Quote
  #19  
Old 10-16-2013, 12:34 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jbuszkie View Post
digging up an old thread....

But when I tried to switch to using a service.. I got the ui config thing again?
Why doesn't it remember what I had when I was not using Sage as a service?

Jim
Simple when you use the Service the Sagetv UI will use client properties which is created when you use the service not the regular sagetv.properties.... that is created when you run just the UI or the service.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #20  
Old 10-16-2013, 12:54 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Thanks... I think I just figured that out! Too bad it doesn't copy the server ui properties for the client as a starting point!

I think I got it all straightened out. Hopefully this will get rid of my java warnings

Jim
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
RAM usage is rather high! Moskus SageTV Software 3 07-24-2009 06:11 AM
High CPU Usage jphhughes Hardware Support 4 12-28-2008 06:17 PM
High CPU Usage? Ryand833 SageTV Software 10 04-16-2008 09:21 AM
High CPU Usage! Screechyd SageTV Software 6 02-05-2007 09:17 AM
High CPU Usage Harris_C SageTV Software 1 08-24-2006 07:15 PM


All times are GMT -6. The time now is 01:21 PM.


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