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:17:24 GMT

I'm using Tomcat 6.0.18 with Apache2.2 server.Our application is using MS-SQL
server 2008. I want to configure server.xml & context.xml files.... Can
anyone please tell me how can i configure server.xml & context.xml for high
performance & heavy traffic..........  

Below i included my current configurations........
context.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="216.205.107.50">

        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
      <Host name="216.205.107.50"  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="CARENT" password="CARENT"      
		driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
	     url="jdbc:sqlserver://216.205.48.214:1433;	      
		databaseName=VEHRENT;user=CARENT;password=CARENT;"
      	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="CARENT" password="CARENT"
	   driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
      
url="jdbc:sqlserver://216.205.48.214:1433;databaseName=EMPOWER;user=CARENT;password=CARENT;"
	      numTestsPerEvictionRun="15" 							
timeBetweenEvictionRunsMillis="900000"
	      minEvictableIdleTimeMillis="900000" 
		testWhileIdle="true"
      	testOnBorrow="false"
            removeAbandoned="true" 
		removeAbandonedTimeout="300"
      	logAbandoned="true" 
	/>
</Context> 
	

I'm looking for the nice reply.............
                                  





-- 
View this message in context: http://old.nabble.com/How-to-configure-tomcat-server.xml....-tp27575008p27575008.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