From owner-freebsd-java Wed Nov 6 18:33:17 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 6AD2637B404 for ; Wed, 6 Nov 2002 18:33:16 -0800 (PST) Received: from mighty.grot.org (mighty.grot.org [204.182.56.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B6D743E42 for ; Wed, 6 Nov 2002 18:33:16 -0800 (PST) (envelope-from aditya@grot.org) Received: by mighty.grot.org (Postfix, from userid 515) id B4FA25DAF; Wed, 6 Nov 2002 18:33:04 -0800 (PST) Date: Wed, 6 Nov 2002 18:33:04 -0800 From: Aditya To: freebsd-java@freebsd.org Subject: preventing the JVM from swapping to disk Message-ID: <20021107023304.GA75921@mighty.grot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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. Has anyone dealt with this type of situation? have you turned off all swap partitions and had it "successfully" die or recover after garbage collection? Google turns up very few leads other than the general "running without swap is bad" type answers: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=2417102+0+archive/2001/freebsd-questions/20010225.freebsd-questions but in this case I don't mind the JVM dying and I'm devoting the entire machine to it, so other userland processes aren't as important... Thanks, Adi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message