From owner-freebsd-java@FreeBSD.ORG Thu Dec 9 15:25:23 2004 Return-Path: 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 BF83B16A4CE for ; Thu, 9 Dec 2004 15:25:23 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BBF243D5A for ; Thu, 9 Dec 2004 15:25:23 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])iB9FPLmB063035; Thu, 9 Dec 2004 16:25:21 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.13.1/Submit) id iB9FPF5d063034; Thu, 9 Dec 2004 16:25:15 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Thu, 9 Dec 2004 16:25:15 +0100 From: Herve Quiroz To: Ronald Klop Message-ID: <20041209152515.GA62954@arabica.esil.univ-mrs.fr> Mail-Followup-To: Ronald Klop , freebsd-java@freebsd.org References: <20041119002714.GA91497@arabica.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-java@freebsd.org Subject: Re: Javavmwrapper is slow? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 15:25:23 -0000 Hi Ronald, On Mon, Nov 22, 2004 at 10:03:42PM +0100, Ronald Klop wrote: > If I comment out these lines calling javavm is just a bit slower than > calling java directly. (0.9 secs vs. 1.0 secs.) I understand that this > removes a lot functionality from the script, but it indicates where the > performance goes. > > # Determine location of bsd.port.mk if it exists > #PORTSDIR= > #if [ -r /usr/share/mk/bsd.port.mk ]; then > # PORTSDIR=`"${MAKE}" -f /usr/share/mk/bsd.port.mk -V PORTSDIR > 2>/dev/null` > #fi > # > #BSD_PORT_MK= > #if [ ! -z "${PORTSDIR}" -a -r "${PORTSDIR}/Mk/bsd.port.mk" ]; then > # BSD_PORT_MK="${PORTSDIR}/Mk/bsd.port.mk" > #fi > > I don't know if I reported what my system is. It is a bit slower than > yours. :-) > FreeBSD laptop 5.3-STABLE FreeBSD 5.3-STABLE #59: Tue Nov 16 23:49:18 CET > 2004 > root@guido.thuis.klop.ws:/usr/obj/usr/src/sys/LAPTOP i386 > CPU: Pentium II/Pentium II Xeon/Celeron (266.68-MHz 686-class CPU) > real memory = 100622336 (95 MB) > avail memory = 92979200 (88 MB) > > cat /usr/local/etc/javavms > /usr/local/jdk1.4.2/bin/java # FREEBSD-JDK1.4.2 Your system is indeed a bit slower than mine :-) However, after a bit of testing, I don't think I have any quick fix to improve performance of javavmwrapper without losing some of its features. Invoking make(1) is not cheap on some systems. I'm sorry for that, but AFAICT your best bet is to run javavmwrapper with a correct JDK specified in JAVA_HOME so that it doesn't invoke make(1). You'll lose the bsd.java.mk-like logic though. Herve