From owner-freebsd-java Wed Feb 26 11:21:40 2003 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 AC91137B401 for ; Wed, 26 Feb 2003 11:21:36 -0800 (PST) Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8D9343F75 for ; Wed, 26 Feb 2003 11:21:35 -0800 (PST) (envelope-from jj@alicia.nttmcl.com) Received: from alicia.nttmcl.com (localhost [127.0.0.1]) by alicia.nttmcl.com (8.12.5/8.12.5) with ESMTP id h1QJLUvm067619; Wed, 26 Feb 2003 11:21:30 -0800 (PST) (envelope-from jj@alicia.nttmcl.com) Received: (from jj@localhost) by alicia.nttmcl.com (8.12.5/8.12.5/Submit) id h1QJLPib067618; Wed, 26 Feb 2003 11:21:25 -0800 (PST) Date: Wed, 26 Feb 2003 11:21:25 -0800 From: Shannon -jj Behrens To: freebsd-java@freebsd.org Cc: Marc van Kempen Subject: Re: performance results of 1.3.1 hotspot Message-ID: <20030226192125.GB67161@alicia.nttmcl.com> References: <3E5C7EEC.5000302@bowtie.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E5C7EEC.5000302@bowtie.nl> User-Agent: Mutt/1.4i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I don't know what the hell I'm talking about, but my guess is that hotspot uses a lot more memory; since the database is on the same machine as the Web server, the database ends up with less RAM, thus slowing it down. Best Regards, -jj On Wed, Feb 26, 2003 at 09:46:36AM +0100, Marc van Kempen wrote: > Hi, > > I just ran a performance test on the jdk 1.3.1 hotspot compiler with the > latest patches released by Greg. > > We have developed a webbased content management system, running on tomcat > 4.0.6. > > The CMS generates the webpages dynamically, as such it is pretty database > intensive, however, the acl's (permissions) are cached and all database > information is first loaded in java objects, then converted to xml with > castor and then transformed to html using xslt. > > So we have a good mix of database operations and jvm operations. > > OS: FreeBSD 4.7-stable (27 Jan 2003) > > I ran apache benchmark (ab) on a webpage which is typical for the system. > > Document Length: 14604 bytes > Concurrency Level: 4 > > and got the following times: > > - running jdk1.3.1 patchlevel 7 gives: > > Time taken for tests: 21.216 seconds > Complete requests: 50 > Failed requests: 0 > Total transferred: 743450 bytes > HTML transferred: 730200 bytes > Requests per second: 2.36 > Transfer rate: 35.04 kb/s received > > - running jdk1.3.1 patchlevel 8, with green threads (no hotspot): > > Time taken for tests: 20.311 seconds > Complete requests: 50 > Failed requests: 0 > Total transferred: 743450 bytes > HTML transferred: 730200 bytes > Requests per second: 2.46 > Transfer rate: 36.60 kb/s received > > > - running jdk1.3.1 patchlevel 8, with hotspot enabled (I moved -server to > the top in jvm.cfg). > > Time taken for tests: 62.054 seconds > Complete requests: 50 > Failed requests: 0 > Total transferred: 772652 bytes > HTML transferred: 758872 bytes > Requests per second: 0.81 > Transfer rate: 12.45 kb/s received > > (I ran this test several times, to make sure that the hotspot compiler got > its chance) > > So the hotspot compiler jvm is approximately 3 times slower than the > non-hotspot compiler with green threads. > > When I look at the profiling output in our logfile, I can see that after a > while the cpu intensive parts gets faster (on average) than with the > non-hotspot compiler, however the times vary much more. > The database intensive part however is *much* slower, typically between > 2000ms and 6000ms. For the non-hotspot compiler this is between 300ms and > 1200ms. > > This is the puzzling part, the database performance should be about the > same, and if anything, a little bit faster. > > The database we use is Solid 3.51, with a JDBC driver. The database runs on > the same machine as the webserver. > > (How long does it take for hotspot to compile the neccesary parts of the > code? Now I ran this test for about 10 minutes before doing the final test > run) > > - running jdk1.3.1 patchlevel 8, with hotspot disabled, (I moved -classic > to the top in jvm.cfg) just hangs. > > [no results] > > > Regards, > Marc. > -- > ---------------------------------------------------- > Marc van Kempen tel. +31 40 2 64 98 60 > BowTie Technology fax. +31 40 2 64 98 61 > Raiffeisenstraat 7 mailto:marc@bowtie.nl > 5611 CH Eindhoven http://www.bowtie.nl > ---------------------------------------------------- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message -- Hacker is to software engineer as Climbing Mt. Everest is to building a Denny's there. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message