>
>I use JBoss2.2.2+Tomcat3.2.2 (for JBoss as my EJB container and Tomcat as my
>JSP and Servlet container). I have a lot of static content such as HTML
>files, images, etc. which need to be served as well. Do I need an external
>web server such as Apache for serving the static content? What are the +/-
>of using Tomcat for everything vs. Apache for some of the stuff? Would some
>one please provide me some guidance? I hope there are some documents which
>talk about this.
>

I recently setup a test java program that ran a number of serial and
parallel requests through static and soap URLs.  The soap requests
were a simple echo of a short text string.  The purpose of the test was
to measure Apache as a baseline, then variations of ajpv to tomcat,
and then soap routed both through apache to tomcat and served up
by tomcat alone.  (I also tested JVMs and servlet containers.)
There's lots of caveats in the following benchmarks.  Please take
everything with a grain of salt.  At the same time, rough comparisons
should be possible with the figures.  The numbers are requests handled
per second in a serial sequence of 100 requests.  The client was debian
linux with 3/4G RAM, server was red hat linux 7.1 w/ only 64M RAM
several states away (lots of salt).

static apache: 19-20/s
static tomcat: 8/s    (i.e. static pages served up directly by tomcat)
static tomcat via ajpv13: 14-15/s  (i.e. static pages picked up by tomcat
    but request and response routed through apache connector)

soap tomcat: 5/s
soap tomcat via apjv13: 4/s

Just for contrast, the same test running blackdown java on
my client system against tomcat/blackdown on same client
system (so no memory constraints, no network overhead)
but fighting client/server on same box
yielded  55 to 158 static requests per second handled by tomcat
and this is more in line w/ other benchmarks tossed around.



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to