Server maxing out CPU

Need help? Post your questions here.

Moderator: moderators

Server maxing out CPU

Postby milleph » Sat May 24, 2014 10:45 am

New install on Windows 7. 5,000 songs, no users, 4 cores at max. How do I figure out what's going on?
milleph
 
Posts: 15
Joined: Sat May 24, 2014 10:40 am

Re: Server maxing out CPU

Postby GJ51 » Sat May 24, 2014 2:43 pm

Video?

Open task manager and see what exactly is using the CPU.

If you only have music on your site it shouldn't demand much cpu - video transcoding is usually the problem with maxing out the cpu.

Has the initial library scan completed?
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Server maxing out CPU

Postby milleph » Sun May 25, 2014 12:08 pm

I uninstalled everything (Program Files/subsonic and C:/subsonic), did a clean install of beta 5.0, started the server and it went straight to 100.0% cpu usage. No media, nothing. (process is subsonic-service.exe *32)
milleph
 
Posts: 15
Joined: Sat May 24, 2014 10:40 am

Re: Server maxing out CPU

Postby GJ51 » Sun May 25, 2014 1:47 pm

It's been a while since I've used the standard Windows install for Subsonic, but I do have it running on Windows Server on Tomcat using the war version.

I've installed many versions of the Windows install previously and it should behave the same as the war version on Windows.

If you don't have any media folders defined, then Subsonic should not be using any CPU load. You can stop the service from the tray icon to see if it kills the CPU load and you can also do it via the Services MMC. Either way you should get the same result. If restarting the service again maxes out the CPU then there is something strange going on. If I ran into this on one of my systems, I would Uninstall Subsonic through Control Panel, delete C:\Subsonic, then uninstall ALL instances of any Java entries through Control Panel as well.

Reboot the system and then do a clean install of the latest Java version for your system, then do a clean install of Subsonic.

Yours is the first report of this I have seen here in the forums and seems to be a unique issue. I upgraded yesterday from 4.9 to the 5.0 beta 1 without running into any problems. As I mentioned earlier, you normally only stress the CPU under heavy transcoding situations, such as transcoding video. If you do a complete clean reinstall and still have the same issue, you should look at the Subsonic log carefully to see if you can identify what Subsonic is doing that is hitting the CPU so hard.

I'll be out of town for a week or so, but any detailed feedback you can provide might identify the problem for anyone else to give you assistance.

Good Luck,

HTH
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Server maxing out CPU

Postby milleph » Sun May 25, 2014 4:14 pm

Yep, tried everything you suggested. Clean install of Java 1.7 and Subsonic 5.0. Attached a screenshot of the resource monitor with subsonic just started afew minutes ago and nothing much else going on.... clean install, no media.

sub_process2.png



And the log file....

[2014-05-25 12:03:03,715] INFO DaoHelper - Checking database schema.
[2014-05-25 12:03:04,177] INFO DaoHelper - Done checking database schema.
[2014-05-25 12:03:04,621] INFO MediaScannerService - Automatic media library scanning scheduled to run every 1 day(s), starting at Mon May 26 03:00:00 EDT 2014
[2014-05-25 12:03:04,680] INFO UPnPService - Starting UPnP service...
[2014-05-25 12:03:04,748] INFO PodcastService - Automatic Podcast update scheduled to run every 24 hour(s), starting at Sun May 25 12:08:04 EDT 2014
[2014-05-25 12:03:05,748] INFO VersionService - Resolved local Subsonic version to: 5.0.beta1
[2014-05-25 12:03:05,965] INFO UPnPService - Enabling UPnP/DLNA media server
[2014-05-25 12:03:05,966] INFO UPnPService - Starting UPnP service - Done!
[2014-05-25 12:03:14,712] INFO NetworkService - Deleted port mapping for port 80
[2014-05-25 12:08:04,753] INFO PodcastService - Starting scheduled Podcast refresh.
[2014-05-25 12:08:04,755] INFO PodcastService - Completed scheduled Podcast refresh.
milleph
 
Posts: 15
Joined: Sat May 24, 2014 10:40 am

Re: Server maxing out CPU

Postby milleph » Tue May 27, 2014 9:46 am

Is there a verbose logging mode for the server so I can post that to offer more insight?
milleph
 
Posts: 15
Joined: Sat May 24, 2014 10:40 am

Re: Server maxing out CPU

Postby GJ51 » Thu May 29, 2014 11:26 pm

What CPU is this?
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Server maxing out CPU

Postby milleph » Sat May 31, 2014 10:53 am

Yeah, this is an old PC I want to use as a server. Intel Core 2 Quad Q8300. Should be perfectly adequate to serve up MP3 and FLAC files though.
milleph
 
Posts: 15
Joined: Sat May 24, 2014 10:40 am

Re: Server maxing out CPU

Postby milleph » Sat May 31, 2014 11:29 am

.... and just like that, with nothing having changed, it's perfectly fine at 0% cpu
milleph
 
Posts: 15
Joined: Sat May 24, 2014 10:40 am

Re: Server maxing out CPU

Postby GJ51 » Sat May 31, 2014 2:29 pm

That sounds more like it.

A Q8300 should also be able to handle some video without a problem as long as you don't get into multiple HD streams.

I have servers running Q9550S CPU's that work very well - especially when only doing music. Quite snappy.

Glad to hear it sorted itself out.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 65 guests