Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2006 23:48:00 -0600
From:      "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: memory leak with jdk 1.5.0 ... ?
Message-ID:  <C4BCF2A7-E812-425A-8A20-E3C80144B981@shire.net>
In-Reply-To: <20060412213804.B54115@turing>
References:  <20060413012044.A1096@ganymede.hub.org> <20060412213804.B54115@turing>

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

On Apr 12, 2006, at 10:39 PM, Nick Johnson wrote:

> I'm not sure how/where resin3_flags gets handled, but in resin's  
> httpd.sh, you have to add -J to any arguments you want passed to  
> the JVM; eg, -J-Xmx256m in the "args" knob.

see below

>
>    Nick
>
> On Thu, 13 Apr 2006, 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?

you should be able to see if the flag is being passed correctly by  
look at a ps -auxwww and identifying the line for this process

Chad

>>
>> 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 ...
>>
>> thx ...
>>

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C4BCF2A7-E812-425A-8A20-E3C80144B981>