Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2001 02:40:01 +0930
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        John-David Childs <jdc@nterprise.net>
Cc:        ronald-20010816@klop.yi.org, freebsd-questions@FreeBSD.ORG, freebsd-java@FreeBSD.ORG
Subject:   Re: I *just* got Linux Opera 5.05 TP1 + Java to work!  Plus other java kudos!
Message-ID:  <20010914024001.B84181@misty.eyesbeyond.com>
In-Reply-To: <200109131616.f8DGGKW11348@dns1.digitalglobe.com>; from jdc@nterprise.net on Thu, Sep 13, 2001 at 10:09:20AM -0600
References:  <200109131616.f8DGGKW11348@dns1.digitalglobe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 13, 2001 at 10:09:20AM -0600, John-David Childs wrote:
> On a side note, one of my employers uses Java, XML/XSL, and Tomcat/JSP's 
> quite heavily on their web pages.  The webserver (unfortunately) has to 
> run on Linux because of the currently poor *BSD Java support.  However, 
> great advances have been made in the past two weeks with the native *BSD 
> JDK 1.3.1 port.  In fact, for the first time, I'm able to install and 
> execute our JSP pages without any linux jdk emulation.  Performance still 
> sucks compared to the linux webserver, but it is much better than the 
> performance of any of the linux-based jdk's (IBM's or Sun's).  Kudos to 
> all those working on the *BSD java port.
> 
> It appears that the primary performance difference is due to the fact that 
> Tomcat under linux starts multiple (threaded?) JVM's (with NO changes to 
> the tomcat startup scripts)...while the FreeBSD native 1.3.1 and the 
> Sun/Linux-emulation JDK only start one.  

Are you sure this isn't just a difference in threading?  The default
threading package on Linux is their native threads, each of which shows
up as a separate process.  FreeBSD green threads do not show up as separate
processes.  I think this is what you are possibly seeing?

> The IBM/Linux JDK 1.3.1 starts 
> multiple JVM's, but the tomcat process is not able to communicate with any 
> of them (even with linprocfs).  The aforementioned Linux (native) server 
> showed the exact same performance problems under JDK 1.2.2 (only a single 
> JVM loaded) but dramatically improved under JDK 1.3.1 (no changes to 
> tomcat or jsp pages...just the stock version upgrade/install).  A page 
> that took 35 seconds to load under JDK 1.2.2 took 9 seconds with JDK 
> 1.3.1...but that same page takes 20 seconds to load on the *BSD native JDK 
> 1.3.1 (on a box with 40% better CPU horsepower than the Linux box).

Well, one of the big performance hits at the moment is that there is
no port of HotSpot as yet.  We're working on getting native threads
working correctly on FreeBSD so that a port of HotSpot can be tackled.
Until then, JIT support for the FreeBSD 1.3.1 port is coming up to
speed, with shuJIT and OpenJIT being supported under the latest patchset.

-- 
Greg Lewis                            Email : glewis@eyesbeyond.com
Eyes Beyond                           Phone : (801) 765 1887
Information Technology                Web   : http://www.eyesbeyond.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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