Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2004 16:25:15 +0100
From:      Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To:        Ronald Klop <ronald-freebsd8@klop.yi.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Javavmwrapper is slow?
Message-ID:  <20041209152515.GA62954@arabica.esil.univ-mrs.fr>
In-Reply-To: <opshvwsg1d8527sy@smtp.local>
References:  <opshokzkqp8527sy@smtp.local> <20041119002714.GA91497@arabica.esil.univ-mrs.fr> <opshvwsg1d8527sy@smtp.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041209152515.GA62954>