From owner-freebsd-java@FreeBSD.ORG Sun Dec 7 06:24:01 2003 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 88A0316A4CF for ; Sun, 7 Dec 2003 06:24:01 -0800 (PST) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4801443F93 for ; Sun, 7 Dec 2003 06:23:56 -0800 (PST) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (rdu163-109-248.nc.rr.com [24.163.109.248]) hB7ENrxj015600 for ; Sun, 7 Dec 2003 09:23:53 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.12.10/8.12.10) with ESMTP id hB7ENr8m004900 for ; Sun, 7 Dec 2003 09:23:53 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.10/8.12.10/Submit) id hB7ENqvc004899 for java@freebsd.org; Sun, 7 Dec 2003 09:23:52 -0500 (EST) (envelope-from brent) Date: Sun, 7 Dec 2003 09:23:52 -0500 From: Brent Verner To: java@freebsd.org Message-ID: <20031207142352.GA4827@rcfile.org> References: <20031202130629.U56021@fez.hyperreal.org> <20031203144159.GJ64007@starjuice.net> <20031207132033.GA4454@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031207132033.GA4454@rcfile.org> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.9-STABLE #27: Tue Dec 2 09:09:48 EST 2003 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTTS User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: Running server-side Java on FreeBSD in production environments 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: Sun, 07 Dec 2003 14:24:01 -0000 [2003-12-07 08:20] Brent Verner said: | [2003-12-03 16:41] Sheldon Hearn said: | | On (2003/12/02 13:12), Brian Behlendorf wrote: | | | | > Anyone want to share good success or horror stories? We're | | > trying to determine whether the apache.org box can start to run our own | | > software. :) Speed is definitely less important than proper functioning. | | | | For me, the issue isn't so much with speed as it is for support of | | heavily-threaded applications: | | | | http://starjuice.net/2003_09_01_starjuice_archive.html#106267661433883916 | | Out of curiousity, I just ran the volano benchmark against the native | jdk1.4.2. More info on the benchmark as well as results from other | systems is available at http://www.volano.com/benchmarks.html. ... | I suspect having the client on another system would yield _much_ better | results. If I figure out how to get my linux box to handle the client | task, I'll report the difference in performance. No luck with the linux client, so here are some runs at 500 concurrent connections for comparison's sake. Results from linux box listed first. Looks like running on the same box cuts the results just about in half, as expected. sleepy:~/volano brent$ /usr/local/jdk1.4.2/bin/java -Xmx512M -Xss256k -Dinstall.root=. -Dcatalina.home=. -cp .:lib/bootstrap.jar:lib/catalina.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/servlets-common.jar:lib/servlets-default.jar:lib/volanochat-server.jar:lib/xerces.jar COM.volano.Mark -count 10 -host 10.0.0.1 -rooms 25 ... Creating room number 25 ... 500 connections so far. Java heap: 2170 KB in use, 7588 KB available (29% in use). Running the test ... Test complete. VolanoMark version = 2.5.0.9 Messages sent = 5000 Messages received = 95000 Total messages = 100000 Elapsed time = 31.628 seconds Average throughput = 3162 messages per second mutt:~/volano brent$ /usr/local/jdk1.4.2/bin/java -server -Xmx64M -Dinstall.root=. -Dcatalina.home=. -cp .:lib/bootstrap.jar:lib/catalina.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/servlets-common.jar:lib/servlets-default.jar:lib/volanochat-server.jar:lib/xerces.jar COM.volano.Mark -count 10 -host 10.0.0.1 -rooms 25 ... Creating room number 25 ... 500 connections so far. Java heap: 2148 KB in use, 7612 KB available (28% in use). Running the test ... Test complete. VolanoMark version = 2.5.0.9 Messages sent = 5000 Messages received = 95000 Total messages = 100000 Elapsed time = 66.585 seconds Average throughput = 1502 messages per second cheers. Brent -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman