• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Loadbalancing issues

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bharat Bonde
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Naresh,

What's the issue with your loadbalancing?
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic