Tomcat tomcat load balancing on the installation of more than

2010-08-08  来源:本站原创  分类:Java  人气:117 

A few days ago was no idle matter, it allotted a tomcat load balancing based on experiments, the main reference is kypfos blog post
http://blog.csdn.net/kypfos/archive/2008/10/15/3081330.aspx
When you install multiple tomcat which, according to Bowen in the method to find the following questions:
Even set up different port numbers 8180,8105,8109 and so on, but still in the start tomcat2 is used to find the 8080,8005,8009 ports. So he went online to find articles and found that because the startup is always read catalina.bat file CATALINA_HOME, and that CATALINA_HOME is based on the system classpath variable settings to the.
But many people use when extracting the tomcat version does not set the system variables, so in the next, a new method:
(1) modification of the three corresponding port tomcat2
(2) editing catalina.bat, in
rem $ Id: catalina.bat 537517 2007-05-12 21:11:17 Z markt $
rem ------------------------------------------------- --------------------------
set CATALINA_HOME = D: \ Program Files \ Apache Software Foundation \ tomcat2
set JAVA_HOME = D: \ Program Files \ Java \ jdk1.6.0_10

rem Guess CATALINA_HOME if not defined
set CURRENT_DIR =% cd%
if not "% CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME =% CURRENT_DIR%
if exist "% CATALINA_HOME% \ bin \ catalina.bat" goto okHome

Bold text which is set CATALINA_HOME path for the current system tomcat2 (tomcat1 too).
The second set JAVA_HOME, this would not have said.

So now very clear, when tomcat starts, to read catalina.bat the CATALINA_HOME, if not work on the original set% CURRENT_DIR%.
And now it is mandatory to achieve the set well, so will read from the new set CATALINA_HOME server.xml new port.
Thus, problem solving

相关文章
  • Apache 2 + Tomcat 6 Load balancing and clustering configuration and performance testing 2010-02-10

    Apache 2 + Tomcat 6 Load balancing and clustering configuration and performance testing Load balancing, that is, the client requests a balanced apache divided tomcat1, tomcat2 .... to deal with, Tomcat in clusters so that a group of LAN users to look

  • tomcat clustering & load balancing & session synchronization 2008-10-25

    Keywords: tomcat clustering, load balancing, session synchronization (A) Environmental description (1) The server has four units, one to install apache, three to install tomcat (2) apache2.0.55, tomcat5.5.15, jk2.0.4, jdk1.5.6 or jdk1.4.2 (3) ip conf

  • Based on the tomcat nginx load balancing and clustering (Super Simple) 2010-05-26

    See today, "the tomcat apache-based load balancing and clustering configuration" of this article as javaEye hot. Looked a little, feeling too complicated, too many things to configure, so here to write a more concise way. To cluster tomcat mainl

  • [Change] nginx + tomcat cluster load balancing (to achieve session replication) 2010-09-19

    Keywords: Nginx, Tomcat, clustering, load balancing Transfer from: http://blog.chinaunix.net/u2/83793/showart_1354266.html Architecture Description Nginx front-end server to do a load balancer, back up the cluster composed of N sets tomcat processing

  • Tomcat tomcat load balancing on the installation of more than 2010-08-08

    A few days ago was no idle matter, it allotted a tomcat load balancing based on experiments, the main reference is kypfos blog post http://blog.csdn.net/kypfos/archive/2008/10/15/3081330.aspx When you install multiple tomcat which, according to Bowen

  • (Switch) on mod_proxy + Apache 2.2.16 + Tomcat 7 load balancing and clustering configuration 2010-09-09

    Sunday night and the GF of the villagers drank Wuliangye, leading to weeks with the get out of bed, had to leave home to sleep. Sleep during the day for a long time, could not sleep at night naturally. The project is also just use the load balancing

  • apache tomcat mysql load balancing and clustering 2010-09-14

    Introduction: Has developed a Web site, the estimated top-line number is 3 million, the largest number of concurrent 100. Development site is able to stand the pressure, how to ensure that there is no problem loading the site, after research determin

  • nginx + tomcat cluster load balancing (to achieve session replication) 2010-12-11

    Nginx + tomcat load balancing done Architecture Description Nginx front-end server to do a load balancer, put back the cluster composed of N units tomcat processing services, nginx forwarded through to the back (Note: did not do static and dynamic se

  • Based on mod_proxy + Apache 2.2.16 + Tomcat 7 load balancing and clustering configuration (switch) 2011-09-25

    Transfer http://www.iteye.com/topic/757125 Chapter I. Background For most enterprise applications, and hope to be 7 * 24-hour operation. To maintain such a high availability and easy, the more common practice is to deploy the system on multiple machi

  • Tomcat + Apache load balancing 2010-12-05

    Established under the apache's conf file workers.properties workers.properties tomcat server specified worker.list = fuzaij, tomcat1, tomcat2 worker.tomcat1.port = 8019 worker.tomcat1.host = localhost worker.tomcat1.type = ajp13 worker.tomcat1.lbfact

  • Arch-03-15-Nginx + tomcat configuration load balancing static and dynamic separation 2011-08-12

    #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream;

  • tomcat clustering and load balancing implementation (session synchronous) switch 2010-08-14

    Keywords: tomcat clustering, load balancing, session synchronization (A) of the environment of (1) The server has 4 sets, one to install apache, tomcat installed three (2) apache2.0.55, tomcat5.5.15, jk2.0.4, jdk1.5.6 or jdk1.4.2 (3) ip configuration

  • Get apache, tomcat load balancing 2010-11-26

    Recent data to see the cluster, using the work of relatively free time, view the information online. Take an Apache + JK2 + Tomcat cluster environment, through their own system testing to achieve load balancing and fail the cluster hosting. Simply cl

  • Photo Commentary: Nginx + tomcat6 configure load balancing 2010-12-04

    Of: niumd reproduced please indicate the source Applications developed by F5 load balancing switches, F5 forwards the request to 5 hp unix servers, each have more than one webserver instance, external provision of services and the socket interface, s

  • Apache_Tomcat clustering and load balancing (also for linux) 2011-02-24

    Environment of Apache: apache_2.0.55 1 A Tomcat: apache-tomcat-5.5.17 (zip version) 2 mod_jk:: mod_jk-apache-2.0.55.so 1 A Part I: load balancing Load balancing, the apache to customer requests and balanced and give tomcat1, tomcat2 .... to deal with

  • tocmat apache load balancing 2011-07-31

    ubuntu under apache + tomcat + jk load balancing configuration Environment: ubuntu 9.04 apache 2.2.11 tomcat 6.0.20 mod_jk mod_jk/1.2.26 Load balancing (Load Balance): Since all currently existing core network with the volume of business increased tr

  • RedHat Linux AS 5 installation and under Nginx Nginx + Tomcat load balancing configuration 2010-11-11

    First, the software is ready zlib-1.2.5.tar.gz [support gzip], Download Address: http://www.zlib.net/ pcre-8.10.tar.gz [support rewrite module], download address: http://sourceforge.net/projects/pcre/files/ openssl-1.0.0a.tar.tar [support ssl], downl

  • Apache tomcat load balancing 2010-04-28

    Structure Projects are usually the direct use of Tomcat as a Web server. Tomcat in order to increase the performance and stability, we generally use the balance and the session synchronization mechanisms. The following diagram shows that we used is a

  • tomcat clustering and load balancing implementation (session synchronization) 2009-01-19

    (A) Environmental description (1) The server has four units, one to install apache, three to install tomcat (2) apache2.0.55, tomcat5.5.15, jk2.0.4, jdk1.5.6 or jdk1.4.2 (3) ip configuration, a single installation of apache's ip as 192.168.0.88, thre

  • apache + Tomcat load balancing, and the realization of Session Binding 2010-03-24

    [Change] http://www.cnblogs.com/zhangyi85/archive/2009/04/15/1436786.html Cluster Background 1.1 Definition of Terms Services software is b / s, or c / s structure, s part of the b or c for the provision of services of software systems. Services, har