httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: [users@httpd] Re: Apache with multiple instance of jboss on same server
Date Thu, 11 Jun 2009 13:47:43 GMT
Hi.
The configuration you provide below does not seem to make much sense.
Why do you have 2 workers (4 and 5), connecting to the /same/ back-end 
(IP4) on the same port (8009) ?
No wonder something is getting confused.

I have not cross-checked the rest, but generally speaking :

1 "worker", port X at Apache level <--> 1 <Connector, AJP, port X> at 
the Tomcat/JBoss level.

The HTTP connectors at the Tomcat/JBoss level have no role in this, only 
the AJP <Connectors>.
And each instance must have different ports.



nilesh p wrote:
> :)
> Its like this, 
> 
> My workers.properties file is as below
> 
> worker.list=loadbalancer
> 
> 
> worker.loadbalancer.type=lb
> #worker.loadbalancer.balance_workers=server1,server2,server3
> worker.loadbalancer.balance_workers=server2,server3,server4,server5
> worker.loadbalancer.sticky_session=true
> 
> # Set properties for worker 'server1' (ajp13)
> #worker.server1.type=ajp13
> #worker.server1.host=IP1
> #worker.server1.port=8009
> 
> #worker.server1.cachesize=10
> #worker.server1.cache_timeout=600
> #worker.server1.socket_keepalive=1
> #worker.server1.reclycle_timeout=300
> 
> # Set properties for worker 'server2' (ajp13)
> worker.server2.type=ajp13
> worker.server2.host=IP2
> worker.server2.port=8009
> 
> worker.server2.cachesize=10
> worker.server2.cache_timeout=600
> worker.server2.socket_keepalive=1
> worker.server2.reclycle_timeout=300
> 
> # Set properties for worker 'server3' (ajp13)
> worker.server3.type=ajp13
> worker.server3.host=IP3
> worker.server3.port=8009
> 
> worker.server3.cachesize=10
> worker.server3.cache_timeout=600
> worker.server3.socket_keepalive=1
> worker.server3.reclycle_timeout=300
> 
> # Set properties for worker 'server4' (ajp13)
> worker.server4.type=ajp13
> worker.server4.host=IP4
> worker.server4.port=8009
> 
> worker.server4.cachesize=10
> worker.server4.cache_timeout=600
> worker.server4.socket_keepalive=1
> worker.server4.reclycle_timeout=300
> 
> # Set properties for worker 'server5' (ajp13)
> worker.server5.type=ajp13
> worker.server5.host=IP4
> worker.server5.port=8009
> 
> worker.server5.cachesize=10
> worker.server5.cache_timeout=600
> worker.server5.socket_keepalive=1
> worker.server5.reclycle_timeout=300
> 
> 
> As you can see, Server4 and Server5 have the same IP (IP4) and both are
> jboss instances.
> On the IP4 server(linux box), i have copied two exactly same instances of
> Jboss.
> In the server.xml file of 1st jboss instance all configurations are default
> config (8080)
> whereas in the server.xml of 2nd jboss instance, i have changed port to
> 9080.Thats it.
> now when i start only 1st Jboss instance, it works pretty fine but when i
> start the 2nd instance, the application starts to crash. I have given
> XMX=XMS=1024m for both the instances and the server has 4 gb of physical
> memory.
> 
> I can view the WEB-CONSOLE of 1st jboss instance and find 10 connections.
> I am not very clear if apache is actually using the 2nd instance and why
> does the application crash
> the error that i get is "Your Application session has expired or an
> unexpected error has occured!!!"
> 
> Can anyone help me out ? :(
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message