tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <bastien.de...@bpo.be>
Subject Re: tomcat crash ... "unexpected exception"
Date Wed, 23 Jun 2004 14:48:30 GMT
> if you're using tomcat in standalone mode, I would recommend
> commenting out the jk stuff all together. 

Tomcat serves all .jsp files and Apache manages the rest. The idea is to increase 
performance by letting Tomcat only with its .jsp while leaving the rest to Apache.
Do you think it's a good choice ?

 > I noticed your minProcessors is 100 and max is 500. You must get some serious load,
or 
the usage pattern is such that an unique user session has lots of requets.

I raised those values to ensure the number of processor is no problem in the 
configuration. I just hope it doesn't create other problems instead ... ?



> good luck.
> 
> peter
> 
> 
> On Wed, 23 Jun 2004 15:24:09 +0200, bastien.devos@bpo.be
> <bastien.devos@bpo.be> wrote:
> 
>>by the way, I have maybe a problem in my configuration
>>If you have two minutes ... what do you think about it ?
>>
>>and also, I have no jk2.properties file, is it absolutely necessary ?
>>
>>------------- httpd.conf ---------------
>>...
>>LoadModule jk2_module modules/mod_jk2-2.0.4.so
>>...
>>------------- workers2.properties ---------------
>>########### Scoreboard file ##########
>>[shm]
>>info=Scoreboard. Required for reconfiguration and status with multiprocess
>>file=/application/apache/conf/shm.file
>>size=250000000
>>
>>########### Uri Mapping ##########
>>[uri:/jsp/*.jsp]
>>group=lb
>>
>>[uri:/jkstatus/*]
>>worker=status:status
>>
>>########### Channels ##########
>>[channel.socket:localhost:8009]
>>port=8009
>>host=10.1.1.1
>>lb_factor=1
>>
>>[channel.socket:localhost:8010]
>>port=8010
>>host=10.1.1.1
>>lb_factor=1
>>
>>########### Workers ##########
>># the loadbalancer :
>>[lb:lb]
>>info=Default Load Balancer
>>
>># real workers (Tomcat instances)
>>[ajp13:localhost:8009]
>>info=Worker1
>>channel=channel.socket:localhost:8009
>>group=lb
>>ver=2
>>
>>[ajp13:localhost:8010]
>>info=Worker2
>>channel=channel.socket:localhost:8010
>>group=lb
>>ver=1
>>
>># status worker
>>[status:status]
>>
>>-------------- server.xml --------------
>><Server port="8505" shutdown="SHUTDOWN" debug="0">
>>  <Service name="Tomcat">
>>  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009"
>>minProcessors="100" maxProcessors="500" enableLookups="false" acceptCount="100" debug="4"
>>connectionTimeout="120000" useURIValidationHack="false"
>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler">
>>        <Logger className="org.apache.catalina.logger.FileLogger"
>>prefix="connector1-logger-" suffix=".log" timestamp="true" />
>>  </Connector>
>>
>>  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8010"
>>minProcessors="100" maxProcessors="500" enableLookups="false" acceptCount="100" debug="4"
>>connectionTimeout="120000" useURIValidationHack="false"
>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler">
>>        <Logger className="org.apache.catalina.logger.FileLogger"
>>prefix="connector2-logger-" suffix=".log" timestamp="true" />
>>  </Connector>
>>
>>  <Engine name="Apache" defaultHost="localhost" debug="0">
>>      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
>>autoDeploy="false">
>>        <Alias>localhost</Alias>
>>        <Context path="/jsp" docBase="appweb/jsp" debug="0" reloadable="false"
>>crossContext="true" />
>>        <Logger className="org.apache.catalina.logger.FileLogger" prefix="host-logger-"
>>suffix=".log" timestamp="true" />
>>      </Host>
>>    </Engine>
>>  </Service>
>></Server>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message