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

I've solved the problem.  Actually I ran out of file descriptors.  After
setting the limit to 1024 from 64 the performance tests ran fine.

Still, this worries me.  I do not see, why the additional file
descriptors were allocated.  Actually my servlet opened 40 file
descriptors, regardless of the number of clients.  The maximum numbers
of concurrent connections (with Apache?) was set to 50.  Apache and/or
JServ ran out of file-descriptors some time AFTER all clients have
connected and started working.  It's hard to see, why after the upstart
of all servlets and clients additional file descriptors are necessary. 
Any ideas?

Jakob Hummes wrote:

> What does the following lines from mod_jserv.log really mean:
> 
> [18/06/2000 22:33:02:504] (EMERGENCY) ajp12: can not connect to host
> 127.0.0.1:8007
> [18/06/2000 22:33:02:504] (EMERGENCY) ajp12: connection fail
> [18/06/2000 22:33:02:504] (ERROR) an error returned handling request via
> protocol "ajpv12"
> 
> This problem occurs, when I run a performance test, where I try to
> connect in a large loop from different machines to my own servlet, which
> includes opening a simple socket connection to another propriatary
> server and a JDBC connection.  Note, that this problem does not arise
> under low load, but only if I bombard apache with requests from
> concurrent machines.  The servlet itself manages a pool of connections,
> so that I'm sure that it does not surpasses the limit of socket
> connections.
-- 
Dr. Jakob Hummes, CTO
Castify Networks -- 2229, route des Cretes -- B.P. 193
06904 Sophia Antipolis Cedex -- FRANCE
Tel: (+33) (0)6 19 02 24 83    Fax: (+33) (0)4 93 00 26 27


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