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

Hi!

I'm new to the list and have of course tried to find an answer to this in
both the FAQ and the previous postings. Without any luck... But I think you
won't have any problems solving this! :)

The problem is that JServ only accepts two requests at a time. I have
searched the configuration files for anything regarding maximum threads or
processes but haven't been able to find anything.

The servlet is a very simple one, only containing a sleep with loggings made
before and after:
--------------------------------------------------------------------------
public void doPost (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
{
    Log.log(this, "----> doPost begin "+req);
    try {
        Thread.sleep(5000);
    } catch (Exception e) {}
    Log.log(this, "----- doPost end "+req);
}
--------------------------------------------------------------------------

My test client does ten posts, one every two seconds. As you can see in the
log file below, only two requests are handled at a time:
--------------------------------------------------------------------------
13:40:14 ----> doPost begin  org.apache.jserv.JServConnection@47df10
13:40:15 ----> doPost begin  org.apache.jserv.JServConnection@155a954
13:40:19 ----- doPost end   org.apache.jserv.JServConnection@47df10
13:40:19 ----> doPost begin  org.apache.jserv.JServConnection@1651247
13:40:20 ----- doPost end   org.apache.jserv.JServConnection@155a954
13:40:20 ----> doPost begin  org.apache.jserv.JServConnection@6f4569
13:40:24 ----- doPost end   org.apache.jserv.JServConnection@1651247
13:40:24 ----> doPost begin  org.apache.jserv.JServConnection@8079ed
13:40:25 ----- doPost end   org.apache.jserv.JServConnection@6f4569
13:40:25 ----> doPost begin  org.apache.jserv.JServConnection@18cfbee
13:40:29 ----- doPost end   org.apache.jserv.JServConnection@8079ed
13:40:29 ----> doPost begin  org.apache.jserv.JServConnection@19dad24
13:40:30 ----- doPost end   org.apache.jserv.JServConnection@18cfbee
13:40:30 ----> doPost begin  org.apache.jserv.JServConnection@a7e046
13:40:34 ----- doPost end   org.apache.jserv.JServConnection@19dad24
13:40:34 ----> doPost begin  org.apache.jserv.JServConnection@bf7e19
13:40:35 ----- doPost end   org.apache.jserv.JServConnection@a7e046
13:40:35 ----> doPost begin  org.apache.jserv.JServConnection@1c4d1d6
13:40:39 ----- doPost end   org.apache.jserv.JServConnection@bf7e19
13:40:40 ----- doPost end   org.apache.jserv.JServConnection@1c4d1d6
--------------------------------------------------------------------------

Thanks a million!

Faik Siddiqi



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