Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2006 10:42:10 +0300
From:      Panagiotis Astithas <past@ebs.gr>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: memory leak with jdk 1.5.0 ... ?
Message-ID:  <443E00D2.70502@ebs.gr>
In-Reply-To: <20060413012044.A1096@ganymede.hub.org>

index | next in thread | previous in thread | raw e-mail

Marc G. Fournier wrote:
> 
> This could just be my misunderstanding, but I thought issuing:
> 
> resin3_flags="-Djava.awt.headless=true -Xms32m -Xmx256m"
> 
> was supposed to restrict the amount of memory that the process sucked 
> back ... but, right now its sucking back 1.5G of memory:
> 
> USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
> www    471  0.0  3.0 1522000 61816  p5- SJ   Tue06PM   1:33.47 
> /usr/local/jdk1.5.0/bin/java
> 
> Or am I mis-reading?
> 
> The machien this is on is FreeBSD 6.x / amd64 ... I've seen similar on 
> FreeBSD 4.x / i386 also, with jdk 1.5.0 ...

I don't think you should care at all for the virtual memory consumption. 
The resident memory is what really matters. On a Windows system here the 
maximum heap size specified was 256MB and the virtual size is more than 
430MB, while the working set is merely 103MB. I believe amd64 uses 
larger mappings than can account for the seemingly huge 1.5GB virtual 
size. Your resident size of 61MB is quite within the limit you specified.

Cheers,

Panagiotis



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443E00D2.70502>