----------------------------------------------------------------
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 handles up to maxConnection requests at the same time.
>when it reaches this number of connections in DOES NOT ACCEPT ANY
>more connections from the server socket
This makes sense, and sounds like what I'm seeing, however ...
>in such case, Apache mod_jserv will log 'timeout error'.
>
>calling init() method again and again ... hmmm ... you should have up
>to _maxConenctions_ servelets at the same time I think ?
... nope, it's just the one servlet (at least, init() is being called
exactly once. You can verify this by System.err.println'ing "init called on
" + this or some such). I'm also not getting timeout errors logged
anywhere, just the premature end of script headers and restart I described
before.
>can you send some sample code (servlet & client) so that I can
>reproduce the situation ?
I posted the sample servlet a couple messages back. I'm happy to send it to
you again, if you'd like; it was basically Sun's SimpleServlet (the servlet
version of "Hello, world"). The only thing I did to it was add a
Thread.sleep( 10 * 1000 ) to sleep it for ten seconds right in the middle.
I mentioned a while back that the client VeloMeter'll do the trick for
sending several hundred concurrent connections. I can send you a little
hacked together program I wrote in a few minutes called WebStressor; it
basically spawns args[0] threads and lets them all repeatedly send GET
requests for args[1] seconds (also printing out reports every second on how
many have returned, how long each took, etc). Let me know if you'd like
this as well, I can drop it your way (although bear in mind that it's a bit
of a thrown-together utility...)
Thanks,
Ben Flaumenhaft
--
--------------------------------------------------------------
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]