You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Centaur zeus <pe...@hotmail.com> on 2002/07/11 09:14:43 UTC

Is there ways to minize the memory used by tomcat ?

Hi all ,

  I am developing an application using tomcat. As I put development, testing 
and production in the same environment. And each environment has 2 
instances. So there are now altogather 6 instances in the machine. My 
machine is getting slower. Actually, my application is only a small one and 
there are only just 20~30 ppl using it. So is there anyway to make tomcat 
eat up less memory ?

  Here is my server.xml for one of the instance. The others are alike

<Server port="8010" shutdown="SHUTDOWN" debug="0">
  <Service name="foo">
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8000" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8005"
               acceptCount="10" debug="0" connectionTimeout="60000"/>
    <Engine name="eAdminEngine" defaultHost="localhost" debug="0">
      <Host name="localhost" debug="0" appBase="/dvl/admin/perseus_www/" 
unpackWARs="true">
        <Logger className="org.apache.catalina.logger.FileLogger"
            directory="/dvl/admin/perseus_www/log"  prefix="localhost_log." 
suffix=".txt"
                timestamp="true"/>
        <Context path="" docBase="" debug="0"
                 reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
               directory="/dvl/admin/perseus_www/log"  prefix="log" 
suffix=".txt"
                  timestamp="true"/>
          <Resource name="jdbc/EAdminDB" auth="Container" 
type="javax.sql.DataSource"/>
             <ResourceParams name="jdbc/EAdminDB">
                <parameter>
                   <name>user</name>
                   <value>xxx</value>
                </parameter>
                <parameter>
                   <name>password</name>
                   <value>xxx</value>
                </parameter>
                <parameter>
                   <name>driverClassName</name>
                   <value>oracle.jdbc.driver.OracleDriver</value>
                </parameter>
                <parameter>
                   <name>driverName</name>
                   <value>jdbc:oracle:thin:@xxx:1521:xxx</value>
                </parameter>
          </ResourceParams>
        </Context>
      </Host>
    </Engine>
  </Service>
</Server>

Thanks


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Is there ways to minize the memory used by tomcat ?

Posted by Tom Parker <to...@econz.co.nz>.
>   I am developing an application using tomcat. As I put
> development, testing
> and production in the same environment. And each environment has 2
> instances. So there are now altogather 6 instances in the machine. My
> machine is getting slower. Actually, my application is only a
> small one and
> there are only just 20~30 ppl using it. So is there anyway to make tomcat
> eat up less memory ?

As others have said, you should not run production on the same machine as
dev and test.

Are you running 6 different tomcats on 6 different ip addresses or are you
using one tomcat with 6 different web applications at different URL
prefixes?

The latter setup will use less memory than the former.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>