Search code examples
apachejbossmod-cluster

JBoss Clustered Application Freezes and Apache mod_cluster config has some warnings


I have my JBoss Application in cluster. When I start my domain.sh in all the nodes and run the application. My Application freezes even for normal db transactions from App.

When I observed my Apache I'm getting some warnings. Is this warnings are causing the problem, if so what is the salvation......

Here is my Apache Configuration...... I had followed minimal configuration which was given jboss mod_cluster documentation....

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so


<VirtualHost 10.252.103.77:80>
<Location />
Order deny,allow
Allow from all
</Location>
<Location /mod_cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Allow from all
</Location>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName mycluster
ServerAdvertise On
EnableMCPMReceive
</VirtualHost>

When I start or restart my Apache Web Server I'm getting following WARN's.......

~]$ sudo /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Mon Dec 07 12:19:17 2015] [warn] module proxy_module is already loaded, skipping
[Mon Dec 07 12:19:17 2015] [warn] module proxy_ajp_module is already loaded, skipping
httpd: Could not reliably determine the server's fully qualified domain name, using 10.252.103.77 for ServerName
                                                           [  OK  ]

I had copied all the modules which were used to the appropriate modules directory....... My domain runs on Redhat Enterprise Linux 64 bit...... So I had copied x86_64 bit version of .so files....


Solution

  • I had commented following .so modules as those were already loaded..... Although it is just WARN for proxy module, it is unappropriated as couple of modules were loaded and works in dualmode....

    #LoadModule proxy_module modules/mod_proxy.so
    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    

    As I copied appropriate modules (x86_64) required.... fresh proxy_ajp proxy modules is in function instead of default ones.... SO JBoss cluster config succeeds.......