----------------------------------------------------
Please read the FAQ at <http://java.apache.org/faq/>
It does have a search feature!

We cannot guess what you are trying to do:
#1. Include version numbers for all software.
#2. Include relevant configuration settings.
#3. Include full descriptions of the problem.

Got Linux? Seeing lots of java processes?
<http://java.apache.org/faq/?file=274>
----------------------------------------------------

We're using ApacheBenchmark 1.3a and encountering a rather strange
occurance.  We understand that the following call to ab means that ab will
simulate 5 concurrent users each making 10 requests for a total of 50
requests.

ab -n 50 -c 5 "http://www.oursite.com/servlet/OurServlet"

The strange thing is that our servlet gets called 55 times -- five extra
times more than it should.  Is this an ab bug?  We're able to measure the
number of calls to our servlet two ways:  using a static variable in the
servlet as a counter, and since the servlet inserts a row into the database
on each call, we've seen it adding 55 rows.

This seems to happen on any call to ab.  So,...

ab -n 1000 -c 20 "http://www.oursite.com/servlet/OurServlet"

...will call the servlet 1020 times!  And...

ab -n 148 -c 4 "http://www.oursite.com/servlet/OurServlet"

...152 times!

Could it be that ab is making an extra request for each simulated user?
It's important to note that (using the first example again) ab still reports
50 requests as happening and when the verbose is set high, we can see that
it only displays 50 requests, but it's as though it's making 55 requests and
only reporting 50.

Kevin

Apache: 1.3.9
ApacheBenchmark: 1.3a
JServ: 1.0
JDK: 1.2.2
JSDK: 2.0
Solaris: 2.7

-------------------------------------------
Kevin MacClay
Lead Developer
Vantage Technologies
215.579.8390, ext. 1120 tel
215.579.8391 fax



--
--------------------------------------------------------------
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