workers.properties
-----------------------------------------------------------------------------------------
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java/jdk
ps=/

worker.list=tomcat0,tomcat1,tomcat2,tomcat3,loadbalancer

worker.tomcat0.port=11009
worker.tomcat0.host=localhost
worker.tomcat0.type=ajp13
worker.tomcat0.lbfactor=100

worker.tomcat1.port=12009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100

worker.tomcat2.port=13009
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=100

worker.tomcat3.port=14009
worker.tomcat3.host=localhost
worker.tomcat3.type=ajp13
worker.tomcat3.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat0,tomcat1,tomcat2,tomcat3
worker.inprocess.type=jni
worker.inprocess.class_path=${workers.tomcat_home}${ps}lib${ps}tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.stdout=${workers.tomcat_home}${ps}logs${ps}inprocess.stdout
worker.inprocess.stderr=${workers.tomcat_home}${ps}logs${ps}inprocess.stderr

 

server.xml
-----------------------------------------------------------------------------------------

<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">

  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <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>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container", 
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina0">

    <Connector port="11080" protocol="HTTP/1.1" 
               maxThreads="400" connectionTimeout="200000" 
               redirectPort="8443" />

    <Connector port="11009" protocol="AJP/1.3" redirectPort="8443" 
		maxPostSize="0" 
		disableUploadTimeout="true" 
		maxThreads="400" 
		connectionTimeout="300" 
		URIEncoding="utf-8" />

    <Engine name="Catalina0" defaultHost="localhost" jvmRoute="tomcat0">

		<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">

			<Manager className="org.apache.catalina.ha.session.DeltaManager"
						expireSessionsOnShutdown="false"
						notifyListenersOnReplication="true"/>

			<Channel className="org.apache.catalina.tribes.group.GroupChannel">
			<Membership className="org.apache.catalina.tribes.membership.McastService"
						address="228.0.0.4"
						port="45564"
						frequency="500"
						dropTime="3000"/>
			<Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
					  address="auto"
					  port="4000"
					  autoBind="100"
					  selectorTimeout="5000"
					  maxThreads="20"/>

			<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
				<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
			</Sender>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
		  </Channel>

		  <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
				 filter=""/>
		  <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

		  <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
					tempDir="/tmp/war-temp/"
					deployDir="/tmp/war-deploy/"
					watchDir="/tmp/war-listen/"
					watchEnabled="false"/>

		  <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
		  <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
		</Cluster>    

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false" >
		<Context path="/G-PIN" docBase="/data/gpin/G-PIN" reloadable="true"  privileged="true" allowLinking="false"></Context>
		<Context path="/G-PIN2" docBase="/data/gpin/G-PIN2" reloadable="true"  privileged="true" allowLinking="false"></Context>
      </Host>

      <Host name="www.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
        <Context path="" docBase="/data/webuser/lb1" reloadable="true" privileged="true" debug="0">
			<Resource
				name="jdbc/KXXWebDB"
				auth="Container"
				type="javax.sql.DataSource"
				driverClassName="oracle.jdbc.driver.OracleDriver"
				loginTimeout="10"
				maxIdle="8"
				maxWait="-1"
				maxActive="25"
				removeAbandoned="true"
				removeAbandonedTimeout="60"
				logAbandoned="true"
				username="web_user"
				password="web_pass$"
				url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"/>
		</Context>
		<Alias>www.kxx.ac.kr</Alias>
		<Alias>www.keimyung.ac.kr</Alias>
		<Alias>lb1.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>

      <Host name="cms.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
		<Context path="" docBase="/data/k2web" reloadable="true" privileged="true" debug="0">
			<Resource 
				 auth="Container"
				 description="DB Connection"
				 name="jdbc/JWizardDB"
				 type="javax.sql.DataSource"
				 driverClassName="oracle.jdbc.driver.OracleDriver"
				 password="********"
				 maxIdle="8"
				 maxWait="-1"
				 username="k2web"
				 url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"
				 maxActive="25"
				 removeAbandoned="true"
				 removeAbandonedTimeout="60"
				 logAbandoned="true" />
        </Context>
		<Alias>cms.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>
    </Engine>
  </Service>

  <Service name="Catalina1">

    <Connector port="12080" protocol="HTTP/1.1" 
               maxThreads="400" connectionTimeout="200000" 
               redirectPort="8443" />

    <Connector port="12009" protocol="AJP/1.3" redirectPort="8443" 
		maxPostSize="0" 
		disableUploadTimeout="true" 
		maxThreads="400" 
		connectionTimeout="300" 
		URIEncoding="utf-8" />

    <Engine name="Catalina1" defaultHost="localhost" jvmRoute="tomcat1">

		<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">

			<Manager className="org.apache.catalina.ha.session.DeltaManager"
						expireSessionsOnShutdown="false"
						notifyListenersOnReplication="true"/>

			<Channel className="org.apache.catalina.tribes.group.GroupChannel">
			<Membership className="org.apache.catalina.tribes.membership.McastService"
						address="228.0.0.4"
						port="45564"
						frequency="500"
						dropTime="3000"/>
			<Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
					  address="auto"
					  port="4001"
					  autoBind="100"
					  selectorTimeout="5000"
					  maxThreads="20"/>

			<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
				<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
			</Sender>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
		  </Channel>

		  <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
				 filter=""/>
		  <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

		  <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
					tempDir="/tmp/war-temp/"
					deployDir="/tmp/war-deploy/"
					watchDir="/tmp/war-listen/"
					watchEnabled="false"/>

		  <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
		  <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
		</Cluster>    

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false" >
		<Context path="/G-PIN" docBase="/data/gpin/G-PIN" reloadable="true"  privileged="true" allowLinking="false"></Context>
		<Context path="/G-PIN2" docBase="/data/gpin/G-PIN2" reloadable="true"  privileged="true" allowLinking="false"></Context>
      </Host>

      <Host name="www.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
        <Context path="" docBase="/data/webuser/lb1" reloadable="true" privileged="true" debug="0">
			<Resource
				name="jdbc/KXXWebDB"
				auth="Container"
				type="javax.sql.DataSource"
				driverClassName="oracle.jdbc.driver.OracleDriver"
				loginTimeout="10"
				maxIdle="8"
				maxWait="-1"
				maxActive="25"
				removeAbandoned="true"
				removeAbandonedTimeout="60"
				logAbandoned="true"
				username="web_user"
				password="web_pass$"
				url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"/>
		</Context>
		<Alias>www.kxx.ac.kr</Alias>
		<Alias>www.keimyung.ac.kr</Alias>
		<Alias>lb1.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>

      <Host name="cms.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
		<Context path="" docBase="/data/k2web" reloadable="true" privileged="true" debug="0">
			<Resource 
				 auth="Container"
				 description="DB Connection"
				 name="jdbc/JWizardDB"
				 type="javax.sql.DataSource"
				 driverClassName="oracle.jdbc.driver.OracleDriver"
				 password="********"
				 maxIdle="8"
				 maxWait="-1"
				 username="k2web"
				 url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"
				 maxActive="25"
				 removeAbandoned="true"
				 removeAbandonedTimeout="60"
				 logAbandoned="true" />
        </Context>
		<Alias>cms.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>
    </Engine>
  </Service>

  <Service name="Catalina2">

    <Connector port="13080" protocol="HTTP/1.1" 
               maxThreads="400" connectionTimeout="200000" 
               redirectPort="8443" />

    <Connector port="13009" protocol="AJP/1.3" redirectPort="8443" 
		maxPostSize="0" 
		disableUploadTimeout="true" 
		maxThreads="400" 
		connectionTimeout="300" 
		URIEncoding="utf-8" />

    <Engine name="Catalina2" defaultHost="localhost" jvmRoute="tomcat2">

		<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">

			<Manager className="org.apache.catalina.ha.session.DeltaManager"
						expireSessionsOnShutdown="false"
						notifyListenersOnReplication="true"/>

			<Channel className="org.apache.catalina.tribes.group.GroupChannel">
			<Membership className="org.apache.catalina.tribes.membership.McastService"
						address="228.0.0.4"
						port="45564"
						frequency="500"
						dropTime="3000"/>
			<Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
					  address="auto"
					  port="4002"
					  autoBind="100"
					  selectorTimeout="5000"
					  maxThreads="20"/>

			<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
				<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
			</Sender>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
		  </Channel>

		  <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
				 filter=""/>
		  <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

		  <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
					tempDir="/tmp/war-temp/"
					deployDir="/tmp/war-deploy/"
					watchDir="/tmp/war-listen/"
					watchEnabled="false"/>

		  <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
		  <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
		</Cluster>    

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false" >
		<Context path="/G-PIN" docBase="/data/gpin/G-PIN" reloadable="true"  privileged="true" allowLinking="false"></Context>
		<Context path="/G-PIN2" docBase="/data/gpin/G-PIN2" reloadable="true"  privileged="true" allowLinking="false"></Context>
      </Host>

      <Host name="www.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
        <Context path="" docBase="/data/webuser/lb1" reloadable="true" privileged="true" debug="0">
			<Resource
				name="jdbc/KXXWebDB"
				auth="Container"
				type="javax.sql.DataSource"
				driverClassName="oracle.jdbc.driver.OracleDriver"
				loginTimeout="10"
				maxIdle="8"
				maxWait="-1"
				maxActive="25"
				removeAbandoned="true"
				removeAbandonedTimeout="60"
				logAbandoned="true"
				username="web_user"
				password="web_pass$"
				url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"/>
		</Context>
		<Alias>www.kxx.ac.kr</Alias>
		<Alias>www.keimyung.ac.kr</Alias>
		<Alias>lb1.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>

      <Host name="cms.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
		<Context path="" docBase="/data/k2web" reloadable="true" privileged="true" debug="0">
			<Resource 
				 auth="Container"
				 description="DB Connection"
				 name="jdbc/JWizardDB"
				 type="javax.sql.DataSource"
				 driverClassName="oracle.jdbc.driver.OracleDriver"
				 password="********"
				 maxIdle="8"
				 maxWait="-1"
				 username="k2web"
				 url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"
				 maxActive="25"
				 removeAbandoned="true"
				 removeAbandonedTimeout="60"
				 logAbandoned="true" />
        </Context>
		<Alias>cms.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>
    </Engine>
  </Service>

  <Service name="Catalina3">

    <Connector port="14080" protocol="HTTP/1.1" 
               maxThreads="400" connectionTimeout="200000" 
               redirectPort="8443" />

    <Connector port="14009" protocol="AJP/1.3" redirectPort="8443" 
		maxPostSize="0" 
		disableUploadTimeout="true" 
		maxThreads="400" 
		connectionTimeout="300" 
		URIEncoding="utf-8" />

    <Engine name="Catalina3" defaultHost="localhost" jvmRoute="tomcat3">

		<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">

			<Manager className="org.apache.catalina.ha.session.DeltaManager"
						expireSessionsOnShutdown="false"
						notifyListenersOnReplication="true"/>

			<Channel className="org.apache.catalina.tribes.group.GroupChannel">
			<Membership className="org.apache.catalina.tribes.membership.McastService"
						address="228.0.0.4"
						port="45564"
						frequency="500"
						dropTime="3000"/>
			<Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
					  address="auto"
					  port="4003"
					  autoBind="100"
					  selectorTimeout="5000"
					  maxThreads="20"/>

			<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
				<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
			</Sender>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
		  </Channel>

		  <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
				 filter=""/>
		  <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

		  <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
					tempDir="/tmp/war-temp/"
					deployDir="/tmp/war-deploy/"
					watchDir="/tmp/war-listen/"
					watchEnabled="false"/>

		  <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
		  <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
		</Cluster>    

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false" >
		<Context path="/G-PIN" docBase="/data/gpin/G-PIN" reloadable="true"  privileged="true" allowLinking="false"></Context>
		<Context path="/G-PIN2" docBase="/data/gpin/G-PIN2" reloadable="true"  privileged="true" allowLinking="false"></Context>
      </Host>

      <Host name="www.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
        <Context path="" docBase="/data/webuser/lb1" reloadable="true" privileged="true" debug="0">
			<Resource
				name="jdbc/KXXWebDB"
				auth="Container"
				type="javax.sql.DataSource"
				driverClassName="oracle.jdbc.driver.OracleDriver"
				loginTimeout="10"
				maxIdle="8"
				maxWait="-1"
				maxActive="25"
				removeAbandoned="true"
				removeAbandonedTimeout="60"
				logAbandoned="true"
				username="web_user"
				password="web_pass$"
				url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"/>
		</Context>
		<Alias>www.kxx.ac.kr</Alias>
		<Alias>www.keimyung.ac.kr</Alias>
		<Alias>lb1.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>

      <Host name="cms.kxx.ac.kr"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
		<Context path="" docBase="/data/k2web" reloadable="true" privileged="true" debug="0">
			<Resource 
				 auth="Container"
				 description="DB Connection"
				 name="jdbc/JWizardDB"
				 type="javax.sql.DataSource"
				 driverClassName="oracle.jdbc.driver.OracleDriver"
				 password="********"
				 maxIdle="8"
				 maxWait="-1"
				 username="k2web"
				 url="jdbc:oracle:thin:@2XX.247.29.156:1521:KXXORADB"
				 maxActive="25"
				 removeAbandoned="true"
				 removeAbandonedTimeout="60"
				 logAbandoned="true" />
        </Context>
		<Alias>cms.kxx.ac.kr</Alias>
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
      </Host>
    </Engine>
  </Service>
</Server>