----------------------------------------------------
Please read the FAQ at <http://java.apache.org/faq/>
It does have a search feature!

We cannot guess what you are trying to do:
#1. Include version numbers for all software.
#2. Include relevant configuration settings.
#3. Include full descriptions of the problem.

Got Linux? Seeing lots of java processes?
<http://java.apache.org/faq/?file=274>
----------------------------------------------------

Hi there,

I have a crushial problem with the JServ Engine. The engine crashes, if it
is hit by many requests. You can test it by sending the same request for
about 30 times within a short time (clicking on the same button very fast),
but the error occurs also if there are many users online at the server at
the same time. The result is an Internal Server Error. The servlet engine
looses all sessions and is available again after about 2 minutes.

The error_log file contains the following messages:
ApacheJServ/1.0: An error occurred listening to the port:
java.lang.OutOfMemoryError
[Mon Oct 11 16:16:48 1999] [error] [client xxx.xx.xx.xxx] Premature end of
script headers: /servlet/TestServlet
[Mon Oct 11 16:16:48 1999] [error] [client xxx.xx.xx.xxx] Premature end of
script headers: /servlet/TestServlet

The jserv_log contains the following messages:
[11/10/1999 16:16:48:129] (ERROR) an error returned handling request via
protocol "ajpv11"
[11/10/1999 16:16:48:138] (EMERGENCY) ajp11: cannot scan servlet headers
[11/10/1999 16:16:48:138] (ERROR) an error returned handling request via
protocol "ajpv11"
[11/10/1999 16:16:48:141] (EMERGENCY) ajp11: can not connect to host
127.0.0.1:8007
[11/10/1999 16:16:48:141] (EMERGENCY) ajp11: connection fail
[11/10/1999 16:16:48:141] (ERROR) an error returned handling request via
protocol "ajpv11"
[11/10/1999 16:16:48:143] (EMERGENCY) ajp11: can not connect to host
127.0.0.1:8007
[11/10/1999 16:16:48:143] (EMERGENCY) ajp11: connection fail

The http.conf file contains the following important lines:
<IfModule mod_jserv.c>
  ApJServManual         off
  ApJServSecretKey      /usr/local/apache/conf/jserv.secret.key
  ApJServProperties     /usr/local/apache/conf/jserv.properties
  ApJServLogFile        /export/www/logs/jserv.log
  ApJServMount          /servlet /servlet
</IfModule>

The jserv.properties-file looks as follows:
wrapper.bin=/usr/bin/java
wrapper.bin.parameters=-ms80m -mx128m
wrapper.class=org.apache.jserv.JServ

wrapper.classpath=/usr/local/jserv/lib/ApacheJServ.jar
wrapper.classpath=/usr/local/jsdk-2.0/lib/jsdk.jar
wrapper.classpath=/projects/xxx
wrapper.classpath=/projects/xxx/mail.jar
wrapper.classpath=/projects/xxx/activation.jar
wrapper.classpath=/projects/xxx/jdbc/lib/classes111.zip

wrapper.env=LD_LIBRARY_PATH=/usr/local/lib

port=8007

zones=servlet
servlet.properties=/usr/local/apache/conf/jserv.servlet.properties
security.maxConnections=50
security.authentication=true
security.secretKey=/usr/local/apache/conf/jserv.secret.key
security.challengeSize=5

log=false
log.file=/usr/local/apache/logs/jserv.trace
log.timestamp=true

log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz] 


I am using the following machines:

1. The HTTP server machine:
Sun Enterprise 250 (1 CPU; 512 MB RAM; 2 mirrored SCSI disks) with Solaris
2.7
Apache 1.3.9 with JServ 1.0 module, JSDK 2.0, JDK 1.1.6

2. The DB machine:
Oracle 8.1.5 RDBMS, connections via JDBC port 1521 (thin-client)


Has anybody a clue, how to fix this problem??

Thanx
Ulrich   


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