----------------------------------------------------------------
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!!!
----------------------------------------------------------------
We have multiple instances of a SingleThreadModel Servlets being
requested by multiple concurrent clients(~= 15). The STM servlet's
init() method would open a
DB connection to Oracle DB. Here was the setting of our STM pool:
initialCapacity=25
incrementCapacity=3
maximumCapacity=50
We are consistently getting OutOfMemoryError from JServ after stressing
our system for
a while (sometimes less than 60 seconds). JServ seemed to have died
right after the
OutOfMemoryError, and occasionally, JServ core dumped.
Right before the OutOfMemoryError, it seemed like there is always an
error in attempting
to open a db connection to Oracle DB. I'm not sure if this would cause
JServ to goof up?!
We tried to play around with the log.queue.maxage and log.queue.maxsize
parameters
but still have had no luck Tried setting
maxsize=250,500,1000,20000,5000 and
maxage=50,100,250,500,1000 and still didn't see any improvement.
We even set the log=false in the jserv.properties to turn off tracing
but still were getting OutOfMemoryError.
Amazingly, the exact same configuration/setup works well without a
glitch on Apache's
NT counterpart (as opposed to Solaris). One potential catch is that
on Solaris, we are
running Apache server from Ravens (which provides SSL), instead of the
one straight
from Apache (on NT).
At the time of failure, we have tons of memory left (~=400MB) and there
isn't much load
on the machine at all. JServ's JVM was taking up ~=44MB memory.
We really APPRECIATE any pointer/information.
The following is our environment:
Hardware: Sun E450
1GB memory
400MHz CPU
Solaris 2.6
Apache 1.3.9 (from Ravens)
JServ 1.0
Oracle 8.1.5 (with thin JDBC driver from Oracle)
# of STM servlets running ~=10
The following is our jserv.properties file:
wrapper.bin=/usr/java1.2/bin/java
wrapper.bin.parameters="-DECConfig.File=/e2e/ECConfig.properties"
wrapper.classpath=/opt/infoserver1/Source/Java
wrapper.classpath=/opt/jserv/lib/ApacheJServ.jar
wrapper.classpath=/usr/jsdk/lib/jsdk.jar
wrapper.classpath=/opt/infoserver1/Util/DCXMLParser/dcxjp.zip
wrapper.classpath=/opt/infoserver1/Util/DCXMLParser/fesi.zip
wrapper.classpath=/opt/infoserver1/Util/DCXMLParser/HTTPClient.zip
wrapper.classpath=/opt/infoserver1/Util/XML4J/xml4j.jar
wrapper.classpath=/opt/infoserver1/Util/JDBC/Oracle/classes12.zip
wrapper.classpath=/opt/infoserver1/Util/Netscape/java40.jar
zones=root,e2e
root.properties=/opt/jserv/conf/zone.properties
e2e.properties=/opt/jserv/conf/e2e.properties
security.selfservlet=true
port=8007
security.selfservlet=true
security.maxConnections=200
security.allowedAddresses=127.0.0.1
security.authentication=false
log=false
log.file=/opt/apache/logs/jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.queue.maxage = 2000
log.queue.maxsize = 3000
log.channel.init=true
log.channel.terminate=true
log.channel.serviceRequest=true
log.channel.authentication=true
log.channel.signal=true
log.channel.exceptionTracing=true
log.channel.servletLog=true
Thanks,
-Sanjay
--
--------------------------------------------------------------
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]