Date: Thu, 07 Nov 2002 10:52:21 +0100 From: Cedric Berger <cedric@wireless-networks.com> To: Aditya <aditya@grot.org> Cc: freebsd-java@FreeBSD.ORG Subject: Re: preventing the JVM from swapping to disk Message-ID: <3DCA37D5.6010305@wireless-networks.com> In-Reply-To: <20021107023304.GA75921@mighty.grot.org> References: <20021107023304.GA75921@mighty.grot.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DCA37D5.6010305>