From owner-freebsd-java Thu Nov 7 2:15:21 2002 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 2B49037B401 for ; Thu, 7 Nov 2002 02:15:20 -0800 (PST) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id A49A543E3B for ; Thu, 7 Nov 2002 02:15:18 -0800 (PST) (envelope-from erwan@netvalue.com) Received: (from uucp@localhost) by frmug.org (8.11.3/8.11.3/frmug-2.7/nospam) with UUCP id gA7AF7185249; Thu, 7 Nov 2002 11:15:07 +0100 (CET) (envelope-from erwan@netvalue.com) Received: from netvalue.com (localhost [127.0.0.1]) by amelie.frmug.org (Postfix) with ESMTP id 3F6237082; Thu, 7 Nov 2002 11:02:19 +0100 (CET) Message-ID: <3DCA3A2A.7030904@netvalue.com> Date: Thu, 07 Nov 2002 11:02:18 +0100 From: Erwan Arzur User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Aditya Cc: freebsd-java@freebsd.org Subject: Re: preventing the JVM from swapping to disk References: <20021107023304.GA75921@mighty.grot.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Aditya wrote: > On a server solely dedicated to running Tomcat with the linux-jdk1.3 and 1Gig > of RAM I'd like to prevent the JVM from ever swapping to disk. The preferred > behaviour when it runs out of memory is for the JVM to exit (it will be > restarted by a script). I'm allocating the JVM 700M for the min and max heap; > less than 100M is used by FreeBSD and the rest is occupied by the JVM. > One piece of advice before blindly set -Xmx700m -Xms700m, make sure you read this article : http://www.javaworld.com/javaworld/jw-01-2002/jw-0111-hotspotgc_p.html and all assorted references at the end of it. I really think FreeBSD VM subsystem requires you to allocate swap space. I guess you'll get suboptimal performance results by simply disabling it. don't forget your dear google friend ;-) http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=utf-8&q=freebsd+disabling+swap&btnG=Google+Search -- UNIX *IS* user friendly. It's just selective about who its friends are. --unknown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message