Hello -
Anyone feel like a challenge?
I am still having problems trying to get Apache & JServ to scale to even
10 simultaneous connections on Solaris when I'm using a sychronized doPost().
Before I get into a description of the problem, it would seem to me that
JServ should be able to queue up connections to doPost()'s which need
to be serialized. Can someone tell me what it _should_ do for such cases?
Suppose 1000 clients attempt to POST on a servlet which has a synchronized
doPost() that takes over a minute to complete? What _should_ happen?
Okay, now to the specifics.
Here are the players involved:
* simple C-based multithreaded client which spawns off between
a variable number of threads (currently hardcoded at 10) which each
do a POST to a servlet (via HTTP to my Apache webserver, of course).
* simple servlet which has the following properties:
- needs to make a socket call upon each POST to access some data
and return it to the caller; since I have to use a dedicated
socket, I need to...
- synchronize the doPost() servlet method
I am running Apache 1.3.6 on Solaris w/ JServ 1.03b. Statically linked.
Here is what is happening:
* I start the webserver from scratch.
* I wait a few minutes
* I start the client - it spawns off 10 threads, all POSTing once each
What is being returned:
* 6 of the 10 requests are answered
* the other 4 result in HTTP 500s
I'm not seeing anything out of the ordinary in the JServ logfile.
No exceptions. No JVM crashing and restarting. No "could not get socket".
So, for brevity, I will not include it here.
HOWEVER... Here is what I'm seeing in the Apache Webserver logfile:
(remember, started from scratch)
--------------------------------------------------------------------------
[Fri Apr 16 00:02:02 1999] [notice] Apache/1.3.6 (Unix) ApacheJServ/1.0b3
configured -- resuming normal operations
Could not get socket
[Fri Apr 16 00:04:13 1999] [error] [client 128.9.208.134] Premature end of
script headers: /example/MyServlet
[Fri Apr 16 00:04:13 1999] [error] [client 128.9.208.134] Premature end of
script headers: /example/MyServlet
[Fri Apr 16 00:04:13 1999] [error] [client 128.9.208.134] Premature end of
script headers: /example/MyServlet
[Fri Apr 16 00:04:13 1999] [error] [client 128.9.208.134] Premature end of
script headers: /example/MyServlet
Thanks...
--
::: Greg Barish ([EMAIL PROTECTED]) :::::::::::::::::::::::::::::::::::::::
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]