Subsonic 4.5 being starved of RAM?

Need help? Post your questions here.

Moderator: moderators

Subsonic 4.5 being starved of RAM?

Postby hanker » Sat Aug 20, 2011 8:48 pm

Greetings

I'm running Subsonic on kind of an unusual setup: I'm running it on a Sheevaplug, which has a 1.2 GHz ARM processor and 512 MB of RAM. It's running Debian squeeze and Sun Java.

----8<----
Java(TM) 2 Runtime Environment, Standard Edition for Embedded (build 1.6.0_21-b09, headless)
Java HotSpot(TM) Client VM (build 19.0-b02, mixed mode)
----8<----

Subsonic is the only application running on that machine.

My collection is fairly large - about 85000 tracks.

In previous versions (4.1 and 4.4) I had increased Subsonic's max RAM by editing usr/bin/subsonic to have

SUBSONIC_MAX_MEMORY=300

and those versions worked fine.

If I monitored RAM usage with htop, it would show something over 300 MB of RAM used. The Subsonic webui wasn't super fast, but it was reasonably responsive.

I have noticed that 4.5 is very noticeably slower than the previous versions. I have also noticed that RAM usage is much lower than in the previous versions. Despite my setting SUBSONIC_MAX_MEMORY=300, the actual RAM usage never goes above about 170 MB.

Is this why Subsonic 4.5 is so much slower on my little ARM box than the previous versions were - because it's being starved of RAM?

I can examine the commands used to start java using htop, and I see this:

/ejre1.6.0_21/bin/java -Xmx100m -Dsubsonic.home=/var/subsonic

so it looks like Java is being given a max heap size of 100 MB despite my editing usr/bin/subsonic to have SUBSONIC_MAX_MEMORY=300.

Is this what's happening? Is this a bug? Is there a simple fix? Do I need a new Java?

Subsonic 4.5 as it is is usable but is really noticeably sluggish compared to 4.1 and 4.4, and I can tell that it's not using all the RAM it's supposed to be using.
hanker
 
Posts: 33
Joined: Fri Nov 12, 2010 4:48 pm

Re: Subsonic 4.5 being starved of RAM?

Postby tnt533 » Sun Aug 21, 2011 3:34 am

I believe the file you are editing is different than the file I edited to increase heap size on 4.5. I increased mine and saw a significant performance increase.

check this out.
viewtopic.php?f=6&t=3939
tnt533
 
Posts: 44
Joined: Mon Jun 20, 2011 5:38 pm

Re: Subsonic 4.5 being starved of RAM?

Postby hanker » Sun Aug 21, 2011 1:48 pm

tnt533 wrote:I believe the file you are editing is different than the file I edited to increase heap size on 4.5. I increased mine and saw a significant performance increase.

check this out.
viewtopic.php?f=6&t=3939



Very good! That took care of it. :)

Specifically I edited /etc/default/subsonic to have SUBSONIC_ARGS="--max-memory=350" instead of SUBSONIC_ARGS="--max-memory=100".

Thank you for your help! :)
hanker
 
Posts: 33
Joined: Fri Nov 12, 2010 4:48 pm

Re: Subsonic 4.5 being starved of RAM?

Postby GJ51 » Sun Aug 21, 2011 4:11 pm

Just a side note:

I set my memory at 256 and have never run into memory issues yet. I can't recall anyone using 256 running into any problems, It might be a good starting point for you to try. If you do set at 256 and have issues, please post your library stats as I'd like to see more posts that give us a better understanding regarding how much memory allocation works best at a given library size.

Thanks
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 18 guests