Page 1 of 1

Subsonic tailored for embedded, low-resource devices

PostPosted: Wed Feb 08, 2012 2:55 am
by devr
I am a fan of low power efficient servers for my home. I have quite a few different ARM plug servers. I am also a rather big fan of Subsonic. Just bothers me a bit the overhead that java takes on one of my plugs. Though, I have worked at tweaking and refining things so that subsonic is pretty responsive and doesn't take all the plug resources... I was just curious if more could be done.

Currently I use Oracle's ejre to run subsonic, I have found it host Subsonic in such a way that is fast and does not peg my CPU. So just a general question, is it possible to refine, and pair down the overhead of the Subsonic standAlone jetty version further ? Would it even be possible to pair it so far down that Oracle's Java ME could be used versus their java SE (ejre) ? I did see an interesting article posted on their site for running jetty in embedded mode on their java ME (CDC stack).

I am happy to dig and work toward this, but since I am not a expert in this at the moment, thought I would throw the question out there to see if 1. it is even possible, 2. worth the effort. In my mind, I think it is very much worth the effort.

Re: Subsonic tailored for embedded, low-resource devices

PostPosted: Wed Feb 22, 2012 11:41 pm
by succorso
I get horrible performace from my arch linux install on plug when using Subsonic. It's clear java is taking most of the cpu.

Can you elaborate on what you did?

Mine barely runs and it's almost impossible to get access to the 30k plus songs.

Thanks

Re: Subsonic tailored for embedded, low-resource devices

PostPosted: Thu Mar 15, 2012 6:00 am
by ace518
Yeah, any more info on this would be awesome.

Re: Subsonic tailored for embedded, low-resource devices

PostPosted: Thu Mar 15, 2012 6:20 pm
by hanker
I have Subsonic running on a Sheevaplug, 1.2 GHz ARM, 512 MB RAM, booted in Debian squeeze. I'm using Sun java (ejre). It's not super-fast, but it's usable. I have a ~100000 track library. It's broken down into folders by letter, i.e., A, B, C, etc. If I load the Subsonic page and click on the A link, it takes about 30 seconds with the cpu running at 100% for the window to update.

@succorso : if you're running the open-source java, that's your problem. You'll need to go to

http://www.oracle.com/us/sun/index.htm

and download and install sun java. It's free, but you'll have to fill out a form.