Professional Documents
Culture Documents
standalone.xml This standalone configuration file is the default configuration that is used when
you start your standalone server. It contains all information about the server,
including subsystems, networking, deployments, socket bindings, and other
configurable details. It does not provide the subsystems necessary for messaging
or high availability.
standalone-ha.xml This standalone configuration file includes all of the default subsystems and adds
the modcluster and jgroups subsystems for high availability. It does not provide
the subsystems necessary for messaging.
standalone-full.xml This standalone configuration file includes all of the default subsystems and adds
the messaging-activemq and iiop-openjdk subsystems. It does not provide the
subsystems necessary for high availability.
standalone-full-ha.xml This standalone configuration file includes support for every possible subsystem,
including those for messaging and high availability.
standalone-load- This standalone configuration file includes the minimum subsystems necessary
balancer.xml to use the built-in mod_cluster front-end load
balancer to load balance other JBoss EAP instances.
Screenshot 1:
Step 2: copy the jboss binaries to that JBOSS1 folder.
Screenshot 2:
Screenshot 3:
Screenshot 4:
Step 5: Before starting make sure java is installed on Linux machine.
Screenshot 5:
Command >> ./add-user.sh
Screenshot 6:
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
Where,
a)The ManagementRealm and is authorized to perform management operations using the
web-based Management Console or command-line based Management CLI.
b)Adds a user to the ApplicationRealm, and provides no particular permissions. That realm
is provided for use with applications.
Step 7: locate to /JBOSS/JBOSS1/jboss-eap-6.4/bin and run add-user.sh to add
the users.
Command >> ./add-user.sh
Screenshot 7:
Where,
./add-user.sh >> Use to add user
Username >> Provide username for Managemnet User.
Added user 'jboss' to file >> List of .properties file where the 'jboss' user is added .
Step 8: After adding user we have to start jboss using ./standalone.sh file.
Locate to /JBOSS/JBOSS1/jboss-eap-6.4/bin and run ./standalone.sh
Command >> ./standalone.sh
Screenshot 8:
Where,
Screenshot 9:
Screenshot 10:
where,
Screenshot 11:
Where,
Screenshot 13-1:
Screenshot 13-2:
Where,
Screenshot 14-1:
Screenshot 15-2:
max-connections: The maximum number of connections that the server will accept and
process at any given time.
If the max-connections attributes is not set on web subsystem connectors in standalone-
(*).xml / domain.xml, default is computed as:
Reference link :
https://access.redhat.com/documentation/6.4/pdf/installation_guide/Red_Hat_JBoss_EA
P_6.4
https://access.redhat.com/documentation/en-us/
http://anonsvn.jboss.org/repos/jbossweb/tags
https://developer.jboss.org/thread/266415
https://access.redhat.com/solutions/25054
Thanks :-)
#############################END-##########################################
A domain controller is the central point from which the domain is controlled. It ensures
that each server is configured according to the management policy of the domain.
A host controller is a physical or virtual host that interacts with the domain controller to
control the lifecycle of the application server instances running on its host and to assist the
domain controller to manage them. Each host can contain multiple server groups.
A server group is a set of server instances which have JBoss EAP installed on them and are
managed and configured as one. The domain controller manages the configuration of and
applications deployed onto server groups. Consequently, each server in a server group shares
the same configuration and deployments.
domain.xml This is the main configuration file for a managed domain. Only the domain master
reads this file. This file contains the configurations for all of the profiles
(default, ha, full, full-ha, load-balancer).
host.xml This file includes configuration details specific to a physical host in a managed
domain, such as network interfaces, socket bindings, the name of the host, and
other host-specific details. The host.xml file includes all of the features of
both host-master.xml and host-slave.xml, which are described below.
host-master.xml This file includes only the configuration details necessary to run a server as the
master domain controller.
host-slave.xml This file includes only the configuration details necessary to run a server as a
managed domain host controller.
Screenshot :
Step 2: Copy the JBOSS EAP 7.1 to JBOSSMAIN folder and unzip.
Screenshot :
Screenshot :
We have successfully added user.
Screenshot :
Step 5 : Navigate to copied /JBOSS/JBDOMAIN/domain/configuration
Screenshot :
Screenshot :
Step 7 : Before editing always take backup of configuration file, Edit host-
master.xml.
Screenshot :
Screenshot :
Screenshot :
(vi) Change management address of the domain controller with your machine
IP.
Screenshot :
###############################################################
######
<server-groups>
<server-group name="primary-server-group" profile="full">
<jvm name="default">
<heap size="1000m" max-size="1000m"/>
<permgen max-size="256m"/>
</jvm>
<socket-binding-group ref="full-sockets"/>
</server-group>
<server-group name="secondary-server-group" profile="full">
<jvm name="default">
<heap size="1000m" max-size="1000m"/>
<permgen max-size="256m"/>
</jvm>
<socket-binding-group ref="full-sockets"/>
</server-group>
</server-groups>
###############################################################
####
Before Change
Screenshot :
After Change
Screenshot :
Step 9 : Start the domain controller using below command from
"/JBOSS/JBOSSMAIN/jboss-eap-7.1/bin/".
/JBOSS/JBOSSMAIN/jboss-eap-7.1/bin/domain.sh --host-config=host-
master.xml -Djboss.domain.base.dir=/JBOSS/JBDOMAIN/domain &
http://192.168.43.79:9990/console/
Screenshot :
Screenshot :
Screenshot :
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Screenshot :
Step 2 : Review the native management interface port on Slave1 to avoid port conflicts also
check , management address , domain-controller.
Before change
Screenshot :
After Change
Screenshot :
Step 3 : Edit <servers> tag and add the number of servers with dedicated "JVM"
heap for groups.
IMP NOTE : Use different port offset for each "JVM ".
Before change
Screenshot :
After Change
Screenshot :
###############################################################
####
<servers>
<server name="Server1" group="primary-server-group">
<jvm name="default">
<heap size="164m" max-size="256m"/>
</jvm>
<socket-bindings port-offset="100"/>
</server>
<server name="Server2" group="secondary-server-group">
<jvm name="default">
<heap size="264m" max-size="356m"/>
</jvm>
<socket-bindings port-offset="200"/>
</server>
</servers>
###############################################################
##
Step 4 : start the Slave1 host controller with the following command.
/JBOSS/JBOSSMAIN/jboss-eap-7.1/bin/domain.sh --host-config=host-
slave.xml -Djboss.domain.base.dir=/JBOSS/Slave1/domain &
Screenshots:
Check through console,
http://192.168.43.79:9990/console/
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
Step : start the Slave2 host controller with the following command:
/JBOSS/JBOSSMAIN/jboss-eap-7.1/bin/domain.sh --host-config=host-
slave.xml -Djboss.domain.base.dir=/JBOSS/Slave2/domain &
Screenshots
JBOSS PORTS :
############################END#########################################
On above diag, always note down port - offset which we have used during
configuration.
Screenshot :
Step 2 : Click on Deployments tab.
Screenshot :
Screenshot :
Step 4 : Choose upload a new deployment >> Next.
Screenshot :
Screenshot :
Screenshot :
Step 6 : Verify upload details : Name & Runtime Name >> Finish .
Screenshot :
Screenshot :
Step 8 : Click on assign , for assigning calendar.war to group wise.
Screenshot :
Screenshot :
Step 10 : Assigning to primary-server-group & Enable deployment to group >>
Assign.
Screenshot :
Screenshot :
Screenshot :
Step 13 : Check the application logs form console itself Group-wise.
Screenshot :
Screenshot :
Screenshot :
Screenshot :
Screenshot :
Screenshot :
Screenshot :
Step 17 : Check the application through URL :
Screenshot :
Thanks :-)
###############################END###################################
The JBoss Server Migration Tool is a Java application that automatically migrates
JBoss EAP server configurations with minimal or no interaction required.
The JBoss Server Migration Tool reads your existing source server configuration files
and adds configurations for any new subsystems, updates the existing subsystem
configurations with new features, and removes any obsolete subsystem configurations.
You can run the JBoss Server Migration Tool in either of the following ways
Interactive mode: This mode, which is the default, allows you to choose exactly
which configurations you want to migrate.
Non-interactive mode: This mode allows you to run the tool without prompts.
NOTE: You must Stop both target and source JBOSS EAP servers & Take Full Backup
of target & Source JBoss EAP servers.
Command Syntax:
Step 2: Use below command for Interactive mode way, it’s by default.
./jboss-server-migration.sh --source /JBOSS/jboss-eap-6.4 --target /JBOSS/jboss-eap-7.2
Where,
jboss-server-migration.sh : JBoss Migration tool script.
--source : location of old JBoss EAP Server.
-- target : Location of New targeted JBoss EAP server.
You may ask multiple interactive question for migration of source standalone
configuration, deployments & domain configurations.
Step 3: On Completion Migration Success message is available.
Step 4: New migration Configuration is available now.
Step 5: Migration Logs & reports, Reports are available in .xml & html file formats:
FOR,
NOTE: The JBoss Server Migration Tool automatically migrates all subsystem
configurations for all server configuration files ONLY, Deployements will going to be
SKIP.
#############################END######################################
Step 2: Locate to APACHEWEB directory use below command to downlaod Apache HTTP
Server 2.4.27.
Screenshot 2-1 :
OR
Screenshot 2-2:
Screenshot 4:
Screenshot 5:
Step 6: locate to /APACHEWEB/httpd-2.4.27/srclib , since no pre-libraries are there
,so we have to downlaod libraries.
Screenshot 6:
OR
Screenshot 7-1:
OR
Screenshot 7-2:
Screenshot 8-1:
Screenshot 8-2:
Step 9: Rename apr-util-1.6.0 and apr-1.6.2 version info.
Screenshot 9:
Step 10 : Also make sure this rpm are intsalled on LINUX machine before installation.
Screenshot 10-1:
Command >> yum install openssl-devel
Screenshot 10-2:
Screenshot 10-3:
Screenshot 10-4:
Step 11 : Once again change the permission.
Where,
Screenshot :
Step 13 : on same location /APACHEWEB/httpd-2.4.27 use below commands.
Command >> make
Screenshot 13:
Screenshot 14 :
Step 16: locate to bin directory of installed httpd server 2.4 and start the server .
Screenshot 16:
Screenshot 17 :
Step 18 : For Reference doc use below link
################################ENDDDDDDDDDDDDDD
mod_jk Yes No. Directs client requests to the container as long as the
container is available, regardless of application status.
mod_proxy Yes No. Directs client requests to the container as long as the
container is available, regardless of application status.
ISAPI connector Yes No. Directs client requests to the container as long as the
container is available, regardless of application status.
NSAPI connector Yes No. Directs client requests to the container as long as the
container is available, regardless of application status.
Advantages:
Software Details:
(1) Apache/2.4.34(Unix)
https://www.middlewarebox.com/2017/08/how-to-install-apache-http-server-2427.html
Step 2: Download “mod_cluster modules for httpd” from below link, as per your environment.
http://mod-cluster.jboss.org/mod_cluster/downloads/1-3-1-Final-bin
Screenshot:
Screenshot:
MemManagerFile /Apache/HTTPDWEB2.4/MemManagerFile
<IfModule manager_module>
Listen 10.142.0.2:9111
<VirtualHost 10.142.0.2:9111>
</Directory>
EnableMCPMReceive
KeepAliveTimeout 60
<Location /mod_cluster_manager>
</Location>
</VirtualHost>
</IfModule>
AllowDisplay On
***************************************************************
Where,
MemManagerFile: That is the base name for the names mod_manager will use to store
configuration, generate keys for shared memory or lock files. That must be an absolute path name;
the directories will created if needed. It is highly recommended that those files are placed on a local
drive and not an NFS share.
Default: $Apache_Home/logs/.
ServerAdvertise On: Use the advertise mechanism to tell the JBoss AS to whom it should send the
cluster information.
ServerAdvertise On http://hostname:port: Tell the hostname and port to use. Only needed if the
VirtualHost is not defined correctly, if the VirtualHost is a Name-based Virtual Host [http://
httpd.apache.org/docs/2.2/vhosts/name-based.html] or when VirtualHost is not used.
EnableMCPMReceive - Allow the VirtualHost to receive the MCPM from the nodes. You need one
EnableMCPMReceive in your httpd configuration to allow mod_cluster to work, put it in the
VirtualHost where you configure advertise.
SetHandler mod_cluster-manager: That is the handler to display the node mod_cluster sees from
the cluster. It displays the information about the nodes like INFO and additionally counts the number
of active sessions.
NOTE:
On httpd 2.2
#########
Order allow,deny
#########
#########
Screenshot:
Screenshot:
Step 5: For performing mod_cluster method, we need to use standalone-ha.xml or standalone-
full-ha.xml profile, Since this ha & full-ha has a mod_cluster subsystem configuration.
**********************************************
<server name="jboss-eap-6.4-1" xmlns="urn:jboss:domain:1.7">
<extensions>
**********************************************
Screenshot:
Step 7: Add Proxy-list and Balancer name to “standalone-ha.xml” mod cluster subsystem.
***************************
<mod-cluster-config proxy-list="10.142.0.2:9111" advertise-socket="modcluster"
connector="ajp" balancer="mycluster-1" >
<dynamic-load-provider>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
***************************
Screenshot:
Step 8: Add Node name to “standalone-ha.xml” web subsystem.
***************************
</virtual-server>
</subsystem>
***************************
Screenshot:
Step 9: Start the “JBoss instance-1” from “$JBOSS_HOME-1/bin”, using below script,
./standalone.sh -c standalone-ha.xml -b 10.142.0.2 -bmanagement 10.142.0.2
Screenshot:
Step 10: Now, perform same configuration changes using different server name, balancer name &
instance-id on “JBoss instance-2”.
**********************************
**********************************
Step 11: Start the “JBoss instance-2” from “$JBOSS_HOME-2/bin”, using below script.
Screenshot:
Step 12: Check through browser, using http://ip:PORT/mod_cluster_manager
http://35.231.89.125:9111/mod_cluster_manager
Screenshot:
http://35.231.89.125/Sample/
http://35.231.89.125/Calendar/
http://35.231.89.125/Hello/
Screenshot:
####################################^^^^^^^^^^^^^^^^^^^^^#####################
Screenshot 1:
Screenshot 2:
If doesn't have already jboss instance click here:-)
Where,
Screenshot 3-1:
Screenshot 3-2:
Screenshot 3-3:
Screenshot 3-4:
################%%%%%%%%%%%%%%%%%###########################
####################################
LoadModule status_module modules/mod_status.so
ExtendedStatus On
<Location "/server-status">
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost 192.168.105.170
</Location>
####################################
Screenshots :