Page 1 of 1

Subsonic Java memory

PostPosted: Thu Sep 20, 2012 12:41 pm
by divxmen
Hello,
In first sorry for my bad English :(

I have a problem with my subsonic serveur, he work great, but java use a lot of memory. :twisted:
I run with :
Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic x86_64) :D

and my version of java is :
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

my server is a 2G memory and Java use all of it.
free -m :
total used free shared buffers cached
Mem: 1848 1746 101 0 264 1052
-/+ buffers/cache: 429 1418
Swap: 1959 8 1951

top :
3 PID %MEM VIRT SWAP RES CODE DATA SHR nFLT nDRT S PR NI %CPU COMMAND
26571 16.1 1956m 1.6g 297m 36 1.7g 20m 132 0 S 20 0 0 java

htop :
I see a lot of java -Xmx512m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 ...

File: /etc/default/subsonic :
SUBSONIC_ARGS="--max-memory=512"

when i stop subsonic service, memory is ok.But when i restart the service java use all of my memory.

did you have any idea for helping me ?

Thanks in advance :wink:

Re: Subsonic Java memory

PostPosted: Fri Sep 21, 2012 11:53 am
by BKKKPewsey
Download/update your java as there was a problem with java on on all linux flavour pcs
Something about a leap second bug I believe which caused java to use lots of memory.
:mrgreen:

Re: Subsonic Java memory

PostPosted: Fri Sep 21, 2012 12:01 pm
by divxmen
You say i have to update openjdk-6-jre to openjdk-7-jre ?
but i have see people have problem with openjdk-7-jre and subsonic !!

Re: Subsonic Java memory

PostPosted: Fri Sep 21, 2012 12:15 pm
by BKKKPewsey
divxmen wrote:You say i have to update openjdk-6-jre to openjdk-7-jre ?


I did? - where :?

Re: Subsonic Java memory

PostPosted: Fri Sep 21, 2012 12:20 pm
by divxmen
Download/update your java as there was a problem with java

I'm sorry, my English is bad, can you explain to me, what i have to do please ? ^^

Re: Subsonic Java memory

PostPosted: Mon Sep 24, 2012 8:01 am
by divxmen
UP ^^

Re: Subsonic Java memory

PostPosted: Thu Oct 04, 2012 8:22 pm
by rastapi
this is the leap second bug, not a java issue. It's a problem with ntp

Re: Subsonic Java memory

PostPosted: Thu Oct 04, 2012 8:24 pm
by rastapi