-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

"Marche, Marie-Odile" wrote:
> 
> Hello
> 
> I have the following problem (don't know exactly when that happens) running
> servlets on Apache : << ajp11 : ServletError - The servlet named MyServlet
> is a javax.servlet.SingleThreadModel servlet and no instance is available>>
> 
> Context : Apache is configured (default, in fact) so it creates 6 httpd
> processes, in which each servlet is a SingleThreadModel.

You have to understand that Apache is not multithreaded on Unix, and so
apache starts from 1 to n processes (depending on min/max values in
httpd.conf). JServ is a    standalone java program, and benefits from
Java multithreading. So you'lll see just one java process (at least on
solaris, cause linux sees all threads in 'ps'), and n httpd processes.
Apache & JServ communicate via TCP/IP sockets.

did you change the default parameters in zone.conf ?
# SingleThreadModel Servlets parameters
########################################

# Set the initial capacity of the STM servlets pool.
# Syntax: singleThreadModelServlet.initialCapacity=(int)>1
# Default: 5
singleThreadModelServlet.initialCapacity=5

# Set the number of servlet instances should be added to the pool if
found empty.
# Syntax: singleThreadModelServlet.incrementCapacity=(int)>1
# Default: 5
singleThreadModelServlet.incrementCapacity=5

# Set the maximum capacity of the STM pool
# Syntax: singleThreadModelServlet.maximumCapacity=(int)>1
# Default: 10
singleThreadModelServlet.maximumCapacity=10


> Apache version : 1.3.6
> Jserv version : 1.0b3
> OS = solaris5.6
> 
> -> Does anyone know if this is due to a misconfiguration of my Apache
> environment, or weather it is a bug of the SingleThreadModel implementation?

using the FAQ-O search engine with keyword=SingleThreadModel gives some
responses :

http://java.apache.org/faq/?cmd=search&file=7&_submit=Search+for&_search=SingleThreadModel+&_minMatches=

Jean-Luc Rochat
consultant indépendant
tel: 02.38.22.11.61


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