From owner-freebsd-java Thu Nov 7 1:50:16 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 2E0F037B401 for ; Thu, 7 Nov 2002 01:50:15 -0800 (PST) Received: from crewsoft.com (papua.crewsoft.com [198.232.247.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE10043E42 for ; Thu, 7 Nov 2002 01:50:14 -0800 (PST) (envelope-from cedric@wireless-networks.com) Received: from [192.168.1.2] (account cberger@wireless-networks.com HELO wireless-networks.com) by crewsoft.com (CommuniGate Pro SMTP 3.4.7) with ESMTP id 5598306; Thu, 07 Nov 2002 01:51:36 -0800 Message-ID: <3DCA37D5.6010305@wireless-networks.com> Date: Thu, 07 Nov 2002 10:52:21 +0100 From: Cedric Berger User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016 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> In-Reply-To: <20021107023304.GA75921@mighty.grot.org> Content-Type: text/plain; charset=ISO-8859-1; 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. > I don't understand your question. Why would it swap if: 1) You've 1GB of RAM 2) You limit the JVM to 700M. (you can use "ulimit" to enforce that) 3) FreeBSD uses less than 100M (including kernel buffers & co I guess) Is FreeBSD so bad that it will swap when there is RAM available? Cedric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message