It's not a secret anymore!*
The moose likes JBoss/WildFly and the fly likes Loadbalancing issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Loadbalancing issues" Watch "Loadbalancing issues" New topic
Author

Loadbalancing issues

Bharat Bonde
Greenhorn

Joined: Mar 12, 2008
Posts: 13
Hello,

I am using apache for loadbalancing on top of jboss AS.
The setup worked fine when I used jboss version 4.0.4.
But when I started using jboss 4.2.1.GA,I have been getting the following errors(from mod-jk.log):

[Wed Mar 26 13:54:08 2008][5056:3664] [info] jk_connect.c (451): connect to 172.16.5.65:8009 failed with errno=61
[Wed Mar 26 13:54:08 2008][5056:3664] [info] jk_ajp_common.c (873): Failed opening socket to (172.16.5.65:8009) with (errno=61)
[Wed Mar 26 13:54:08 2008][5056:3664] [info] jk_ajp_common.c (1259): (Jboss1) error connecting to the backend server (errno=61)
[Wed Mar 26 13:54:08 2008][5056:3664] [info] jk_ajp_common.c (1916): (Jboss1) sending request to tomcat failed, recoverable operation attempt=1
[Wed Mar 26 13:54:09 2008][5056:3664] [info] jk_connect.c (451): connect to 172.16.5.65:8009 failed with errno=61
[Wed Mar 26 13:54:09 2008][5056:3664] [info] jk_ajp_common.c (873): Failed opening socket to (172.16.5.65:8009) with (errno=61)
[Wed Mar 26 13:54:09 2008][5056:3664] [info] jk_ajp_common.c (1259): (Jboss1) error connecting to the backend server (errno=61)
[Wed Mar 26 13:54:09 2008][5056:3664] [info] jk_ajp_common.c (1916): (Jboss1) sending request to tomcat failed, recoverable operation attempt=2
[Wed Mar 26 13:54:09 2008][5056:3664] [error] jk_ajp_common.c (1928): (Jboss1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
[Wed Mar 26 13:54:09 2008][5056:3664] [info] jk_lb_worker.c (1012): service failed, worker Jboss1 is in error state
[Wed Mar 26 13:54:30 2008][5056:3664] [info] jk_connect.c (451): connect to 152.110.149.196:8009 failed with errno=60
[Wed Mar 26 13:54:30 2008][5056:3664] [info] jk_ajp_common.c (873): Failed opening socket to (152.110.149.196:8009) with (errno=60)
[Wed Mar 26 13:54:30 2008][5056:3664] [info] jk_ajp_common.c (1259): (Jboss2) error connecting to the backend server (errno=60)
[Wed Mar 26 13:54:30 2008][5056:3664] [info] jk_ajp_common.c (1916): (Jboss2) sending request to tomcat failed, recoverable operation attempt=1
[Wed Mar 26 13:54:51 2008][5056:3664] [info] jk_connect.c (451): connect to 152.110.149.196:8009 failed with errno=60
[Wed Mar 26 13:54:51 2008][5056:3664] [info] jk_ajp_common.c (873): Failed opening socket to (152.110.149.196:8009) with (errno=60)
[Wed Mar 26 13:54:51 2008][5056:3664] [info] jk_ajp_common.c (1259): (Jboss2) error connecting to the backend server (errno=60)
[Wed Mar 26 13:54:51 2008][5056:3664] [info] jk_ajp_common.c (1916): (Jboss2) sending request to tomcat failed, recoverable operation attempt=2
[Wed Mar 26 13:54:51 2008][5056:3664] [error] jk_ajp_common.c (1928): (Jboss2) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
[Wed Mar 26 13:54:51 2008][5056:3664] [info] jk_lb_worker.c (1012): service failed, worker Jboss2 is in error state
[Wed Mar 26 13:54:51 2008][5056:3664] [info] jk_lb_worker.c (1106): All tomcat instances are busy or in error state


It seems that the requests are not mounting on JBoss.
I am using apache version 2.0.59.
Do I need to change my apache server to apachev2.2?
I have updated the required files in JBoss(server.xml,META-INF/jboss-service.xml)


Pls advice.

Thanks in advance.
Bharat Bonde
Greenhorn

Joined: Mar 12, 2008
Posts: 13
I am getting the following log on jboss:

[AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009

That means jboss is listening on 8009.
Is it the apache server that is causing the problem?
Bharat Bonde
Greenhorn

Joined: Mar 12, 2008
Posts: 13
The problem is solved....phew!
I changed the workers host in apache from my ip to 127.0.0.1 and it started working.

The other IP belongs to an entirely different network thats why apache was not able to recognise the ip and the port.
naresh govindaswmay
Ranch Hand

Joined: Aug 15, 2007
Posts: 90
hi,
I am also totally struggling in the JBOSS load balancing.can you give me the idea about the load balancing.

Thanks and regards
Naresh


Thanks and Regards<br />Naresh govindaswamy
Bharat Bonde
Greenhorn

Joined: Mar 12, 2008
Posts: 13
Hi Naresh,

What's the issue with your loadbalancing?
mike nu
Ranch Hand

Joined: Mar 11, 2001
Posts: 63
I need to map my domain name to ip ort, which is where my app running on JBoss. Can anyone tell me how to do that?

What I want is when typing www.mydomain.com, the it will be automatically forward to my xxx.xxx.xx.xx:9090 address.

Thanks.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Mike,

You should have opened a new thread, since your question is not related to what is being discussed in this thread

What I want is when typing www.mydomain.com, the it will be automatically forward to my xxx.xxx.xx.xx:9090 address.


See VirtualHosts configuration in JBoss.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loadbalancing issues