tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Munirathinavel <munirathina...@gmail.com>
Subject How to configure tomcat server.xml....
Date Sat, 13 Feb 2010 13:48:06 GMT

I'm using Tomcat 6.0.18 & apache2.2 server & I need to know configure my
server.xml & context.xml for high performance & heavy traffic. Can anyone
please tell me how to configure those files.........

server.xml 
<?xml version='1.0' encoding='utf-8'?>
<Server port="8006" shutdown="SHUTDOWN"> 

  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
  <Service name="Catalina">
 	<Connector port="8009" debug="0" enableLookups="false" protocol="AJP/1.3"
	 maxThreads="120" minSpareThreads="30" maxSpareThreads="60"
reloadable="false" connectionTimeout="20000"  
	  redirectPort="8443"/> 
    <Engine name="Catalina" defaultHost="***********">

        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
      <Host name="***********"  appBase="gateway"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

			<Listener className = "org.apache.jk.config.ApacheConfig"
workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log"
jkDebug="info" noRoot="false"/>
      </Host>
	
		<Listener className = "org.apache.jk.config.ApacheConfig"
workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log"
jkDebug="info" noRoot="false"/> 
    </Engine>
  </Service>
	<Listener className = "org.apache.jk.config.ApacheConfig"
workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log"
jkDebug="info" noRoot="false"/>
</Server>

context.xml
<?xml version='1.0' encoding='utf-8'?>

   <Context>
	 <WatchedResource>WEB-INF/web.xml</WatchedResource>
   	<Resource name="jdbc/vehrentDB" auth="Container"
      	type="javax.sql.DataSource" 
	  	maxActive="100"
      	maxIdle="30"
	  	username="***********" password="***********"      
		driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
	     url="jdbc:sqlserver://***********:1433;	      
		databaseName=***********;user=***********;password=***********;"
      	numTestsPerEvictionRun="15" 			     
timeBetweenEvictionRunsMillis="900000"
        minEvictableIdleTimeMillis="900000" 
		testWhileIdle="true"
		testOnBorrow="false"    
		removeAbandoned="true" 
		removeAbandonedTimeout="300"
      	logAbandoned="true" 
	/>
	<Resource name="jdbc/empowerDB" auth="Container"
      	type="javax.sql.DataSource" 
		maxActive="100"
		maxIdle="30"
		username="***********" password="***********"
	   driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
      
url="jdbc:sqlserver://***********:1433;databaseName=***********;user=***********;password=***********;"
	      numTestsPerEvictionRun="15" 							
timeBetweenEvictionRunsMillis="900000"
	      minEvictableIdleTimeMillis="900000" 
		testWhileIdle="true"
      	testOnBorrow="false"
            removeAbandoned="true" 
		removeAbandonedTimeout="300"
      	logAbandoned="true" 
	/>
</Context> 
	
 I'm hoping for the nice reply soon........   
  
-- 
View this message in context: http://old.nabble.com/How-to-configure-tomcat-server.xml....-tp27575197p27575197.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message