Page 1 of 1

java then browser uses 100% cpu

PostPosted: Tue Nov 01, 2011 6:40 pm
by Carrot Cruncher
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)

Re: java then browser uses 100% cpu

PostPosted: Tue Nov 01, 2011 8:47 pm
by BKKKPewsey
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:

Re: java then browser uses 100% cpu

PostPosted: Tue Nov 01, 2011 9:46 pm
by Carrot Cruncher
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.

Re: java then browser uses 100% cpu

PostPosted: Tue Nov 01, 2011 10:07 pm
by BKKKPewsey
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?

Re: java then browser uses 100% cpu

PostPosted: Tue Nov 01, 2011 10:50 pm
by califrag
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.

Re: java then browser uses 100% cpu

PostPosted: Wed Nov 02, 2011 9:58 am
by Carrot Cruncher
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.