java then browser uses 100% cpu

Need help? Post your questions here.

Moderator: moderators

java then browser uses 100% cpu

Postby Carrot Cruncher » Tue Nov 01, 2011 6:40 pm

hi. i've just come across subsonic and, having installed it on my fedora server, it looks great. unfortunately i'm having problems playing my library of about 8000 mp3 files. i basically just want to play them all randomly using the internal web player. to do this i've clicked on the folder and then clicked on "Play all", i was then going to click on shuffle and hope it would play them as required. after i click on "Play all" everything hangs and from monitoring i can see that the subsonic java process consumes 100% cpu and then this drops off and the browser consumes 100% cpu. i've tried this using both firefox and chrome and they both come up with windows saying do i want to wait for a script to complete, after clicking on "wait" several times i eventually give up and the only way to get things back to normal is to restart subsonic and the browser. i've amended /etc/sysconfig/subsonic to include :

SUBSONIC_ARGS="--max-memory=512"

i can see other queries about cpu usage in this forum, but not this specific issue, am i doing something obviously wrong ?

details from the about menu if it helps :
Version 4.5 (build 2384) – August 10, 2011
Server jetty-6.1.x, java 1.6.0_22, Linux (103.0 MB / 123.2 MB)
Carrot Cruncher
 
Posts: 9
Joined: Tue Nov 01, 2011 6:12 pm

Re: java then browser uses 100% cpu

Postby BKKKPewsey » Tue Nov 01, 2011 8:47 pm

Carrot Cruncher wrote:i can see other queries about cpu usage in this forum, but not this specific issue, am i doing something obviously wrong ?


Quick answer is YES

You are trying to create a playlist of 8000 songs :shock:
That is one very large web page

You should create a random playlist via the More tab and just tick the play more random songs...... tick box.
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: java then browser uses 100% cpu

Postby Carrot Cruncher » Tue Nov 01, 2011 9:46 pm

thanks for the response, thought i must have been doing something wrong. next issue i'm afraid, if i click ok on the "More - Random playlist" option nothing seems to happen, as per this thread :
viewtopic.php?f=2&t=1889
and i definitely only have one player listed.

i presume that because this doesn't work i then don't get the "Play more random songs when end of playlist is reached" checkbox, as per this thread :
viewtopic.php?f=2&t=8091

as a matter of interest, in the "Random playlist" option, should the genre and year dropdowns reflect what is available from the id3 tags from the files in the media folders ? for example, i only get "Any" as an option in the genre dropdown when the files in the media folders have various genres.
Carrot Cruncher
 
Posts: 9
Joined: Tue Nov 01, 2011 6:12 pm

Re: java then browser uses 100% cpu

Postby BKKKPewsey » Tue Nov 01, 2011 10:07 pm

Carrot Cruncher wrote:i presume that because this doesn't work i then don't get the "Play more random songs when end of playlist is reached" checkbox, as per this thread :
viewtopic.php?f=2&t=8091

Forgetting my own posts now :oops:
I spend most of the time with the jukebox player where you do get the play more option. Whoops!
But as a workaround just use external playlist as per that thread

Carrot Cruncher wrote:as a matter of interest, in the "Random playlist" option, should the genre and year dropdowns reflect what is available from the id3 tags from the files in the media folders ? for example, i only get "Any" as an option in the genre dropdown when the files in the media folders have various genres.

Not sure about the years but the genre fields appear to reflect the genres in my library ID tags
What appears in your folder drop down box on that same page?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: java then browser uses 100% cpu

Postby califrag » Tue Nov 01, 2011 10:50 pm

BKKKPewsey wrote:
Carrot Cruncher wrote:as a matter of interest, in the "Random playlist" option, should the genre and year dropdowns reflect what is available from the id3 tags from the files in the media folders ? for example, i only get "Any" as an option in the genre dropdown when the files in the media folders have various genres.

Not sure about the years but the genre fields appear to reflect the genres in my library ID tags
What appears in your folder drop down box on that same page?


The years are generic years populated client-side from the jsp files

The genre's are populated by the backend from the search index.

I'm sure that the years could probably be populated from the backend as well, but haven't looked into it.
califrag
 
Posts: 72
Joined: Mon Sep 26, 2011 3:43 am

Re: java then browser uses 100% cpu

Postby Carrot Cruncher » Wed Nov 02, 2011 9:58 am

hi. loading an external playlist causes the java process to consume about 25% cpu and lots of disk i/o for about 5 mins after which the browser consumes 100% cpu (as it did before, presumably for the same reason).

in the "Random playlist" option the folder dropdown has the media folders i have created. i've just realised i hadn't updated the search index and having done this the genre dropdown now correctly lists everything and i can can create a random playlist. i've also switched to the jukebox player and can check the "Play more random songs when end of playlist is reached" option. all looking good now.
Carrot Cruncher
 
Posts: 9
Joined: Tue Nov 01, 2011 6:12 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 21 guests