Hi -
I have been trying for a few weeks to solve the availability problems
I've been having with Jserv. I'm pretty sure the problem is related to
either something in Jserv or something in the way the HTTP requests are
being made, since the Jserv logfile clearly shows the system hanging...
and I'm not sure why.
I must be doing something really stupid --- the system can spin for
as long as 40 seconds. Maybe someone here can help me see the light.
To review my current situation, I have a servlet which implements doPost()
and uses the publicly available Mutex code to ensure that only one
doPost() at a time uses a supplementary, but necessary, serial resource.
I've even tried removing the Mutex stuff and just using the servlet
as a SingleThreadModel thing -- still, no improvement.
Also, I'm running Jserv 1.0 b3 w/ Apache 1.3.6 on Win32. I've set
maxChildRequests (in Apache http.conf) and maxConnections in the JServ
conf file to be 256.
At times, the system is very snappy. For example, consider this snippet:
(usually 4-10 concurrent requests come into the system at a given time)
[26/04/1999 15:16:24:294 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:16:24:304 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:16:24:304 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:16:24:304 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:16:24:304 PDT] Initializing servlet request
[26/04/1999 15:16:24:304 PDT] Reading request data
[26/04/1999 15:16:24:304 PDT] Initializing servlet request
[26/04/1999 15:16:24:304 PDT] Reading request data
[26/04/1999 15:16:24:304 PDT] Initializing servlet request
[26/04/1999 15:16:24:304 PDT] Reading request data
[26/04/1999 15:16:24:304 PDT] Initializing servlet request
[26/04/1999 15:16:24:304 PDT] Reading request data
[26/04/1999 15:16:24:495 PDT] Parsing cookies
[26/04/1999 15:16:24:495 PDT] Calling service()
[26/04/1999 15:16:24:495 PDT] Parsing cookies
[26/04/1999 15:16:24:495 PDT] Calling service()
200ms between first connection and first service() call.
At other times:
[26/04/1999 15:11:42:649 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:11:42:659 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:11:42:659 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:11:42:659 PDT] Connection from localhost/127.0.0.1
[26/04/1999 15:11:42:659 PDT] Initializing servlet request
[26/04/1999 15:11:42:659 PDT] Reading request data
[26/04/1999 15:11:42:659 PDT] Initializing servlet request
[26/04/1999 15:11:42:659 PDT] Initializing servlet request
[26/04/1999 15:11:42:659 PDT] Initializing servlet request
[26/04/1999 15:11:46:475 PDT] Reading request data
[26/04/1999 15:11:46:475 PDT] Reading request data
[26/04/1999 15:11:46:475 PDT] Reading request data
[26/04/1999 15:12:24:479 PDT] Parsing cookies
[26/04/1999 15:12:24:479 PDT] Calling service()
40 seconds!!!
Thanks...
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]