Apple Mac OS X Server Java Application Server Administration For Version 10.3 or Later Manuel d'utilisateur Page 47

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 50
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 46
<Engine jvmRoute="JBoss1" name="MainEngine" defaultHost="localhost">
4.
Look for the following lines:
<!--Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="9007" minProcessors="5" maxProcessors="200" address="0.0.0.0"
enableLookups="false" acceptCount="50" debug="0"
connectionTimeout="20000"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/-->
5.
Remove the !-- at the beginning of the first line and the -- and end of the last line while making sure
to leave the left angle bracket and the right angle bracket in place.
6.
Save the file.
7.
Repeat steps 1 through 6 for the second application server, but set jvmRoute to "JBoss2" in step 3.
Test the Configuration
Follow these steps to make sure that client requests are balanced among the application servers:
1.
Start the Web service in the web-server computer.
2.
Start the application server in each of the application-server computers and run the following commands
on both:
$ cd /Library/JBoss/Logs
$ tail -f localhost_access<today's_date_YYYY-MM-DD>.log
3.
In the web-server computer, connect to http://<host_name>/petstore/index.jsp. The first node
should show a log entry similar to this:
17.203.255.255 - - [26/Sep/2003:15:56:58 -0800] "GET /petstore/index.jsp
HTTP/1.1" 200 2769
4.
Now, access the same URL from another computer. You should see a log entry in the second node.
Balancing User Load and Replicating Sessions
Load Balancing and Clustering
2005-08-11 | Copyright © 2003, 2005 Apple Computer, Inc. All Rights Reserved.
47
Vue de la page 46
1 2 ... 42 43 44 45 46 47 48 49 50

Commentaires sur ces manuels

Pas de commentaire