----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Ben Ricker wrote:
> 
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
> 
> > JServ is slower than JWS to run servlets. JWS doesn't have the processes
> > switch + TCP connection overhead due to the n-tier model of JServ.
> > But speed is not scalability.
> > and I had one year ago benchmarks results to hit a servlet that updated
> > a RDBMS of 0.012 sec with JServ on a E450 . Far from your 3 seconds, but
> > it was on a real OS, with real tools.
> 
> So, you are saying that the difference between JWS and Jserv would only be
> very small? 
0.012 sec was not a difference but an elapsed time (measured by the
client).
The difference would be smaller and smaller as the servlets get more
complicated.

> That is, the seconds difference I am seeing may not be due to
> the Jserv overhead of process switching and TCP connection? 

Sure. Not 3 seconds. could be expensive logging, network problems,
firewall rules, DNS reverse resolution, authentication, CPU eater
thread, sessions hashtable size, synchronized... or database
configuration.
or Apache configuration (startservers, minspare, maxspare).

The difference
> you seem to suggest in your benchmark above (as far as I understand it) is
> no more than 1/100th of a second. That is not very much of a difference to
> explain the rather large difference exhibited by my setup. Hmmmm.....
> 
> Ben Ricker
> US-Rx, Inc.

on a Pentium 120MHz, 48M RAM, JDK1.1.7, Linux 2.0.36 I get these results
with a simple servlet :

[root@r26m24 etc]# /usr/local/apache/bin/ab -n 1 -c 1
http://localhost/servlets/SnoopServlet
This is ApacheBench, Version 1.3c <$Revision: 1.38 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:       
Apache/1.3.12                                      
Server Hostname:        localhost
Server Port:            80

Document Path:          /servlets/SnoopServlet
Document Length:        769 bytes

Concurrency Level:      1
Time taken for tests:   0.082 seconds
Complete requests:      1
Failed requests:        0
Total transferred:      943 bytes
HTML transferred:       769 bytes
Requests per second:    12.20
Transfer rate:          11.50 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        2     2     2
Processing:    77    77    77
Total:         79    79    79
[root@r26m24 etc]# 



Nb: this Pentium 120 is running Apache + JServ + Tomcat + LDAP + MySQL +
lots of useful things :-)

Do you want to exchange it with your dual PIII 650 ? I'm all for it :)

Jean-Luc


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to