Date: Wed, 6 Nov 2002 18:33:04 -0800 From: Aditya <aditya@grot.org> To: freebsd-java@freebsd.org Subject: preventing the JVM from swapping to disk Message-ID: <20021107023304.GA75921@mighty.grot.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021107023304.GA75921>