From owner-freebsd-java@FreeBSD.ORG Thu Apr 13 08:12:54 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 DF7EB16A58F for ; Thu, 13 Apr 2006 08:12:54 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21E8743D46 for ; Thu, 13 Apr 2006 08:12:53 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id k3D9KXOp025212; Thu, 13 Apr 2006 12:20:33 +0300 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id k3D9KX4V025208; Thu, 13 Apr 2006 12:20:33 +0300 Date: Thu, 13 Apr 2006 12:20:33 +0300 (EEST) From: Achilleus Mantzios To: Panagiotis Astithas In-Reply-To: <443E00D2.70502@ebs.gr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT 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 08:12:55 -0000 O Panagiotis Astithas έγραψε στις Apr 13, 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? > > > > 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. Sorry in case my school memory is in bad shape, but i think that basically VM is the only kind of mem a userland program can/may/must have any access to, so i think Marc (who also is a respected PgSQL colleague too!) should really care about this. > 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. Right since heap is only part of the VM that java has allocated. The resident memory should be of no importance to the app. Just consider those old linux days where we used to disable swap in order to speed things up. In that case VSZ=RSS. > 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 > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > -- -Achilleus