From owner-freebsd-java@FreeBSD.ORG Thu Apr 13 07:42:28 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FA2216A400 for ; Thu, 13 Apr 2006 07:42:28 +0000 (UTC) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [83.171.239.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 561D943D48 for ; Thu, 13 Apr 2006 07:42:25 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id k3D7gHZ2036686; Thu, 13 Apr 2006 10:42:17 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.185] (pc185.ebs.gr [10.1.1.185]) by ebs.gr (8.13.3/8.13.3) with ESMTP id k3D7gQ6L064704; Thu, 13 Apr 2006 10:42:27 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.1.385 [268.4.1/309]); Thu, 13 Apr 2006 10:42:10 +0300 Message-ID: <443E00D2.70502@ebs.gr> Date: Thu, 13 Apr 2006 10:42:10 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: "Marc G. Fournier" References: <20060413012044.A1096@ganymede.hub.org> In-Reply-To: <20060413012044.A1096@ganymede.hub.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org Subject: Re: memory leak with jdk 1.5.0 ... ? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 07:42:28 -0000 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