sorry! the server.xml I sent is from a tomcat 3.2.1 here is the tomcat 4
server.xml. And you are right and that 12 thread are shown in top, there are
many more, sometimes the server reach 100 java threads them  the server
hangs.


<Server port="8005" shutdown="SHUTDOWN" debug="0">
       <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
       address="uranio-note.cti" />



  <!-- Define the Tomcat Stand-Alone Service -->
  <Service name="Tomcat-Standalone">

    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="60000"/>

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

    <Engine name="uranio-note.cti" defaultHost="uranio-note.cti" debug="0">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared
globally -->

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <!-- Replace the above Realm with one of the following to get a Realm
           stored in a database and accessed via JDBC -->



      <!-- Define the default virtual host -->
      <!-- <Host name="uranio-note.cti" debug="0" appBase="webapps"
unpackWARs="true"> -->
      <Host name="uranio-note.cti" debug="0" appBase="webapps"  >
        <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="append"  jkDebug="debug" jkLog="logs/" />


        <Valve className="org.apache.catalina.authenticator.SingleSignOn"
                   debug="0"/>
        -->

        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log."
suffix=".txt"
                 pattern="common"/>

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
         timestamp="true"/>

        <!-- Tomcat Root Context -->
        <!--
          <Context path="" docBase="ROOT" debug="0"/>
        -->

        <!-- Tomcat Manager Context -->
        <Context path="/manager" docBase="manager"
         debug="0" privileged="true"/>

        <!-- Tomcat Examples Context -->
        <Context path="/examples" docBase="examples" debug="0"
                 reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_examples_log." suffix=".txt"
           timestamp="true"/>
          <Ejb   name="ejb/EmplRecord" type="Entity"
                 home="com.wombat.empl.EmployeeRecordHome"
               remote="com.wombat.empl.EmployeeRecord"/>


         <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" forwardAll="false" />

          <Environment name="maxExemptions" type="java.lang.Integer"
                      value="15"/>
          <Parameter name="context.param.name" value="context.param.value"
                     override="false"/>
          <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/EmployeeAppDb">
            <parameter><name>user</name><value>sa</value></parameter>
            <parameter><name>password</name><value></value></parameter>
            <parameter><name>driverClassName</name>
              <value>org.hsql.jdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:HypersonicSQL:database</value></parameter>
          </ResourceParams>
          <Resource name="mail/Session" auth="Container"
                    type="javax.mail.Session"/>
          <ResourceParams name="mail/Session">
            <parameter>
              <name>mail.smtp.host</name>
              <value>localhost</value>
            </parameter>
          </ResourceParams>
        </Context>

      </Host>

    </Engine>

  </Service>


  <!-- Define an Apache-Connector Service -->
  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true" appBase="webapps"
     acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set
to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared
globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

    </Engine>

  </Service>

</Server>

----- Original Message -----
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 4:11 PM
Subject: RE: Memory alloc on tomcat 4.0.4


Hi,
Are you sure you're using tomcat 4.x?  That looks like an older
server.xml file.

For tomcat 4.x, the java runtime settings can be located in
$CATALINA_HOME/bin/catalina.sh under the JAVA_OPTS setting.  There are
none by default, but the only way you'd get a VM with about 620MB (your
original posting implied about 12 threads at 50MB each, unless I'm
mis-interpreting the 'top' output) allocated is if you modified the
JAVA_OPTS...

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 13, 2002 1:34 PM
>To: Tomcat Users List
>Subject: Re: Memory alloc on tomcat 4.0.4
>
>where should I look for java runtime setting :) ?
>----- Original Message -----
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Tuesday, August 13, 2002 12:31 PM
>Subject: RE: Memory alloc on tomcat 4.0.4
>
>
>Hi,
>
>>The output I pasted is a output of the "top" command on Linux. If you
>are
>>asking why I have so many   threads the answer is I don't know! I
think
>>that are threads between tomcat and apache that are never  closed.
>
>I wasn't asking why you have so many threads ;)  I was asking for the
>details of the configuration.  How is tomcat configured?  Java runtime
>settings, server.xml maxProcessors, etc.
>
>Yoav Shapira
>Millennium ChemInformatics
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to