Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 78131 invoked from network); 1 Jun 2006 15:18:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jun 2006 15:18:13 -0000 Received: (qmail 8525 invoked by uid 500); 1 Jun 2006 15:17:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8423 invoked by uid 500); 1 Jun 2006 15:17:46 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 8351 invoked by uid 99); 1 Jun 2006 15:17:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 08:17:46 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.178.61] (HELO web33814.mail.mud.yahoo.com) (66.163.178.61) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Jun 2006 08:17:43 -0700 Received: (qmail 79521 invoked by uid 60001); 1 Jun 2006 15:17:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Vzv9EMNq6/LhaiRuNJF+TVfzjaOLyY8PziFOIbh1YVtPeykkepkS3tqFyzsLypEWxi6kWXYh/0cYC/X+acN9rpCXM/uO8AS/wUdqwr6APlbVSmRUk+5EjYKbl8sveB4EK9XNlOK/8R+DH8gfFfUm9LK7QxSXu7iCDW2NSeDlslc= ; Message-ID: <20060601151719.79519.qmail@web33814.mail.mud.yahoo.com> Received: from [69.1.58.6] by web33814.mail.mud.yahoo.com via HTTP; Thu, 01 Jun 2006 08:17:19 PDT Date: Thu, 1 Jun 2006 08:17:19 -0700 (PDT) From: Wade Chandler Reply-To: hwadechandler-apache@yahoo.com Subject: Re: Tomcat as a standalone webserver. Why not? To: Tomcat Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --- Ga�l Lams wrote: > Hi, > > > I wondering if it's really so good to use Tomcat > behind "a real" web > > server like Apache or IIS. > > > > In my Tomcat 5 book there are two reasons to do it > so: > > > > 1. Tomcat is not as secure as common web servers, > especially if you > > want to use CGI and SSI (I don't think I want to) > > > > 2. Tomcat is slow delivering static content. > > > > Well, as long it's just planned to use only 1 > server for my application, > > I don't think the both points are true for me. On > the Tomcat site > > there's a note about performance: > > ... > > Not an easy question, I think that the answer to > your question is a > mix of personal preferences and, taking into account > your application > specifications, whether or not you need from apache > something that you > can't have with Tomcat. > > I personally started with an apache/tomcat/connector > configuration > because the same servers were already serving > php/mysql and cgi > applications. We moved then all the tomcat/jsp stuff > to its own > servers and I decided to remove apache because: > - it was not required anymore (reason number one) > and for me, the > simpler you keep things, the more robust they are. > Also, I'm quite > "paranoid" and for me the less stuff you installed, > the better > - I had some problems with the mod_jk (timeouts) > - we are not serving static content > > Regards, > > Ga�l > As far as static content goes I don't think Apache is really faster, it will probably use less memory, but faster is in the details. At least not with the more recent Tomcat versions. 5.x.x versions that is. I think for anyone to say otherwise they need to have proof readily available and it be comprehensively comparative (or at least more than 1 configuration) ... not just some conceived notion that compiled C code is going to run faster than Java code (look at Transmeta processors if you need another example of a virtual machine and speed improvements http://www.transmeta.com/efficeon/codemorphing.html just for an example native vs. non-native and which is faster are all in the details as well). The java heap works differently from the C heap, and native instructions at runtime are organized differently. Some things are faster in Java and some are faster in C (depending on the optimizations of the java runtime and hardware ... obviously a purely interpreted runtime would be slower). Some information on the whole Java C thing: http://www.idiom.com/~zilla/Computer/javaCbenchmark.html For information about the Apache/Tomcat debate see: http://tomcat.apache.org/faq/performance.html#faster I think the main point and answer comes down to Gael's email (personal preferences and needs/which provides you the services and configurations you need). Wade --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org