Worker inside ProxyPass
am 11.03.2010 11:21:34 von Milan Tomic
Hi,
Some help needed here...
Is it possible somehow to specify which worker will be used by which context specified with ProxyPass directive?
Thank you in advance,
Milan
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 12:28:36 von Milan Tomic
I have in my htpd.conf:
ProxyPass /Context1 ajp://localhost:8008/Context1
ProxyPass /Context2 ajp://localhost:8008/Context2
if I say:
JkMount /Context1 worker1
JkMount /Context2 worker2
Is this OK? This means /Context1 will be served my worker1 and /Context2 will be served my worker2? I can use JkMount together with ProxyPass as above?
Thank you in advance,
Milan
----- Original Message ----
From: Milan Tomic
To: users@httpd.apache.org
Sent: Thu, March 11, 2010 11:21:34 AM
Subject: [users@httpd] Worker inside ProxyPass
Hi,
Some help needed here...
Is it possible somehow to specify which worker will be used by which context specified with ProxyPass directive?
Thank you in advance,
Milan
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 13:02:49 von Philip Wigg
On 11 March 2010 11:28, Milan Tomic wrote:
>
> I have in my htpd.conf:
>
>
> ProxyPass /Context1 ajp://localhost:8008/Context1
> ProxyPass /Context2 ajp://localhost:8008/Context2
>
>
> if I say:
>
> JkMount /Context1 worker1
> JkMount /Context2 worker2
>
> Is this OK? This means /Context1 will be served my worker1 and /Context2 will be served my worker2? I can use JkMount together with ProxyPass as above?
You seem to be trying to use mod_jk and mod_proxy simultaneously to do
the same thing.
The JkMount directive is for use with mod_jk, and the ProxyPass
configuration is for mod_proxy. Both are modules which can use the AJP
protocol to talk to a back-end application server, but you need to
choose which you're going to use.
There's lots of documentation about both options:-
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
http://tomcat.apache.org/connectors-doc/
http://community.jboss.org/wiki/UsingModproxyWithJBoss
Your ProxyPass configuration by itself looks okay to me, does it not
achieve what you're looking for?
-- Phil
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 13:28:56 von Milan Tomic
Phil,
Thank you very much for your help. My problem is that one Tomcat runs out of resources and then HTTPD also stop forwarding requests to other Tomcats. I'm using only ProxyPass, without JkMount:
ProxyPass /Context1 ajp://localhost:8008/Context1
ProxyPass
/Context2 ajp://localhost:8009/Context2
This is why I would like to try to add JkMount directive, so HTTPD will use workers and if one worker stops others will continue working. Does this make any sense? How can I do this?
Kind regards,
Milan
----- Original Message ----
From: Philip Wigg
To: users@httpd.apache.org
Sent: Thu, March 11, 2010 1:02:49 PM
Subject: Re: [users@httpd] Worker inside ProxyPass
On 11 March 2010 11:28, Milan Tomic wrote:
>
> I have in my htpd.conf:
>
>
> ProxyPass /Context1 ajp://localhost:8008/Context1
> ProxyPass /Context2 ajp://localhost:8008/Context2
>
>
> if I say:
>
> JkMount /Context1 worker1
> JkMount /Context2 worker2
>
> Is this OK? This means /Context1 will be served my worker1 and /Context2 will be served my worker2? I can use JkMount together with ProxyPass as above?
You seem to be trying to use mod_jk and mod_proxy simultaneously to do
the same thing.
The JkMount directive is for use with mod_jk, and the ProxyPass
configuration is for mod_proxy. Both are modules which can use the AJP
protocol to talk to a back-end application server, but you need to
choose which you're going to use.
There's lots of documentation about both options:-
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
http://tomcat.apache.org/connectors-doc/
http://community.jboss.org/wiki/UsingModproxyWithJBoss
Your ProxyPass configuration by itself looks okay to me, does it not
achieve what you're looking for?
-- Phil
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 14:18:02 von Philip Wigg
> Thank you very much for your help. My problem is that one Tomcat runs out of resources and then HTTPD also stop forwarding requests to other Tomcats. I'm using only ProxyPass, without JkMount:
>
> ProxyPass /Context1 ajp://localhost:8008/Context1
> ProxyPass /Context2 ajp://localhost:8009/Context2
>
> This is why I would like to try to add JkMount directive, so HTTPD will use workers and if one worker stops others will continue working. Does this make any sense? How can I do this?
It sounds like you possibly want to configure a balancer, maybe a
hot-standby. You might want to look at implementing the ProxyPass
'ping' parameter for checking for hung or busy Tomcats. Sample
balancer config, etc. is all in the docs:-
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
-- Phil.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 14:33:17 von Milan Tomic
> It sounds like you possibly want to configure a balancer, maybe a
> hot-standby. You might want to look at implementing the ProxyPass
> 'ping' parameter for checking for hung or busy Tomcats. Sample
> balancer config, etc. is all in the docs:-
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
No, I don't need a balancer. My 2 Tomcats run different apps. But when one Tomcat goes out of memory, HTTPD stop sending forwarded requests to the other Tomcat, too. This is awkward situation, because if one Tomcat stops working it shouldn't affect HTTPD, right? This is why I would like to use workers...
Kind regards,
Milan
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 14:38:29 von Eric Covener
> This is why I would like to try to add JkMount directive, so HTTPD will use workers and if one worker stops others will continue working. Does this make any sense? How can I do this?
>
You can't tell Apache to use one type of reverse proxy until it stops
working then switch to another type.
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 15:12:38 von Milan Tomic
> You can't tell Apache to use one type of reverse proxy until it stops
> working then switch to another type.
I wasn't trying this. My problem is: I have HTTPD as front end and 2 Tomcats running different apps behind HTTPD. When one Tomcat runs out of memory, HTTPD stops working and doens't forward requests to the other Tomcat. How can I prevent this? If one Tomcat fails, HTTPD should continue forwarding requests to the other Tomcat...
Thank you in advance,
Milan
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 15:30:58 von Eric Covener
On Thu, Mar 11, 2010 at 9:12 AM, Milan Tomic wrote:
>
>
>> You can't tell Apache to use one type of reverse proxy until it stops
>> working then switch to another type.
>
> I wasn't trying this. My problem is: I have HTTPD as front end and 2 Tomc=
ats running different apps behind HTTPD. When one Tomcat runs out of memory=
, HTTPD stops working and doens't forward requests to the other Tomcat. How=
can I prevent this? If one Tomcat fails, HTTPD should continue forwarding =
requests to the other Tomcat...
Stops working? You'll need to elaborate. If one backend hangs you
might hit MaxClients, but otherwise the two backends don't have
anything to do with eachother.
Try posting logs, netstat, server-status, etc to illustrate the current pro=
blem.
--=20
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: Worker inside ProxyPass
am 11.03.2010 15:56:19 von Milan Tomic
> Try posting logs, netstat, server-status, etc to illustrate the current problem.
What does this log entry means:
"proxy: AJP: disabled connection for (localhost)"
Does it affect both Tomcats since port is not specified?
TIA,
Milan
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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