From owner-freebsd-java Wed Feb 26 0:50:17 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 786CC37B401 for ; Wed, 26 Feb 2003 00:50:14 -0800 (PST) Received: from eomer.vianetworks.nl (eomer.vianetworks.nl [212.61.15.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C41C43FBD for ; Wed, 26 Feb 2003 00:50:13 -0800 (PST) (envelope-from marc@bowtie.nl) Received: from uucp.iae.nl (uucp.iae.nl [212.61.26.37]) by eomer.vianetworks.nl (Postfix) with ESMTP id EE7EA21A06 for ; Wed, 26 Feb 2003 09:50:11 +0100 (CET) Received: (from uucp@localhost) by uucp.iae.nl (8.9.1/8.9.1) with IAEhv.nl id JAA18084 for java@freebsd.org; Wed, 26 Feb 2003 09:50:11 +0100 (MET) Received: from bowtie.nl (euripides.intra.bowtie.nl [192.168.4.15]) by bowtie.nl (8.11.1/8.11.1) with ESMTP id h1Q8kaf68847; Wed, 26 Feb 2003 09:46:36 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <3E5C7EEC.5000302@bowtie.nl> Date: Wed, 26 Feb 2003 09:46:36 +0100 From: Marc van Kempen Organization: BowTie Technology User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: java@freebsd.org Subject: performance results of 1.3.1 hotspot Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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