Subsonic 4.5 being starved of RAM?
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.
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.