You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ap <bi...@antworte.me> on 2010/04/24 22:47:20 UTC
[users@httpd] statistic for mod_jk/mod_proxy requests by source-ip
Hi all,
is it possible to build a relation between mod_status and mod_proxy/mod_jk
?
I.e. I need an answer to the question
how many client (client-ip) addresses are connected to a specific worker?
##
mod_status shows something like
Srv PID Acc M CPU SS Req Conn Child Slot Client
VHost Request
0-0 21308 0/7/7 _ 0.00 15 5 0.0 0.01 0.01 02.client.de
apache.local GET /sample HTTP/1.0
1-0 21309 0/12/12 _ 0.02 38 1 0.0 0.02 0.02 01.client.de
apache.local GET /status HTTP/1.0
2-0 21310 0/6/6 _ 0.01 50 1 0.0 0.01 0.01 01.client.de
apache.local GET /status HTTP/1.0
3-0 21311 0/9/9 _ 0.01 57 1 0.0 0.02 0.02 01.client.de
apache.local GET /balancer-manager HTTP/1.0
4-0 21312 0/7/7 W 0.01 0 0 0.0 0.01 0.01 02.client.de
apache.local GET /status HTTP/1.0
5-0 21316 0/6/6 _ 0.01 34 1 0.0 0.01 0.01 01.client.de
apache.local GET /status HTTP/1.0
6-0 - 0/0/3 . 0.00 92717 0 0.0 0.00 0.00 127.0.0.1
apache.local OPTIONS * HTTP/1.0
7-0 - 0/0/5 . 0.00 92716 0 0.0 0.00 0.02 127.0.0.1
apache.local OPTIONS * HTTP/1.0
8-0 21503 0/7/7 _ 0.02 268 3 0.0 0.02 0.02 01.client.de
apache.local GET /balancer-manager HTTP/1.0
9-0 16383 0/3/3 _ 0.00 13 4 0.0 0.00 0.00 02.client.de
apache.local GET /sample/ HTTP/1.0
10-0 16384 0/4/4 _ 0.00 9 28 0.0 0.01 0.01 02.client.de
apache.local GET /sample/pages/sample.jsf HTTP/1.0
11-0 16385 0/3/3 _ 0.00 4 1 0.0 0.01 0.01 01.client.de
apache.local GET /status HTTP/1.0
##
mod_proxy_balancer shows something like
Type Sticky Sessions Force Sticky Sessions Retries LB Method Locking
Recover Wait Time Max Reply Timeouts
lb True False 2 Request Optimistic
60 0
Good Degraded Bad/Stopped Busy Max Busy Next Maintenance
1 1 0 0 1 58/120
Balancer Members [Hide]
Name Type Host Addr Act State
D F M V Acc Err CE RE Wr Rd Busy Max Route RR Cd Rs
[E|R] eco75st1 ajp13 app:18009 10.80.1.10:18009 ACT OK/IDLE 0 1 1 0 2
0 0 0 1.1K 6.1K 0 1 jvm1 0/0
[E|R] eco75st2 ajp13 app:28009 10.80.1.10:28009 DIS OK/IDLE 0 1 1 0 0
0 0 0 0 0 0 0 jvm2 0/0
Thanks for any ideas in advance.
---------------------------------------------------------------------
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
Re: [users@httpd] statistic for mod_jk/mod_proxy requests by source-ip
Posted by Sander Temme <sc...@apache.org>.
On Apr 25, 2010, at 1:54 AM, ap wrote:
>
>
> Hi Sander,
>
> thanks for your answer, but could you give me some more detail?
> Is there an httpd2 command option to show these information?
>
> Thanks for your help in advance.
See the bottom of
http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_scache.c?view=co
which defines a hook handler for mod_status. It gets registered with the server on mod_ssl.c:317.
To see what the result looks like, see the bottom of the page at
http://www.apache.org/server-status
You'd have to implement something similar for mod_jk: sorry, no command-line options for this.
S.
> T.
>
> On Sat, 24 Apr 2010 15:53:26 -0700, Sander Temme <sc...@apache.org>
> wrote:
>> On Apr 24, 2010, at 1:47 PM, ap wrote:
>>
>>>
>>> Hi all,
>>>
> http://mail2.tiri.de/?_task=mail&_id=16128969284bd402ee24c06&_action=compose#
>>> is it possible to build a relation between mod_status and
>>> mod_proxy/mod_jk
>>> ?
>>
>> Probably. Mod_ssl registers something on mod_status: you might look at
>> how it does that.
>>
>> S.
>>
>>> I.e. I need an answer to the question
>>>
>>> how many client (client-ip) addresses are connected to a specific
> worker?
>>>
>>> ##
>>> mod_status shows something like
>>>
>>> Srv PID Acc M CPU SS Req Conn Child Slot Client
>
>>> VHost Request
>>> 0-0 21308 0/7/7 _ 0.00 15 5 0.0 0.01 0.01 02.client.de
>>> apache.local GET /sample HTTP/1.0
>>> 1-0 21309 0/12/12 _ 0.02 38 1 0.0 0.02 0.02 01.client.de
>>> apache.local GET /status HTTP/1.0
>>> 2-0 21310 0/6/6 _ 0.01 50 1 0.0 0.01 0.01 01.client.de
>>> apache.local GET /status HTTP/1.0
>>> 3-0 21311 0/9/9 _ 0.01 57 1 0.0 0.02 0.02 01.client.de
>>> apache.local GET /balancer-manager HTTP/1.0
>>> 4-0 21312 0/7/7 W 0.01 0 0 0.0 0.01 0.01 02.client.de
>>> apache.local GET /status HTTP/1.0
>>> 5-0 21316 0/6/6 _ 0.01 34 1 0.0 0.01 0.01 01.client.de
>>> apache.local GET /status HTTP/1.0
>>> 6-0 - 0/0/3 . 0.00 92717 0 0.0 0.00 0.00 127.0.0.1
>>> apache.local OPTIONS * HTTP/1.0
>>> 7-0 - 0/0/5 . 0.00 92716 0 0.0 0.00 0.02 127.0.0.1
>>> apache.local OPTIONS * HTTP/1.0
>>> 8-0 21503 0/7/7 _ 0.02 268 3 0.0 0.02 0.02 01.client.de
>>> apache.local GET /balancer-manager HTTP/1.0
>>> 9-0 16383 0/3/3 _ 0.00 13 4 0.0 0.00 0.00 02.client.de
>>> apache.local GET /sample/ HTTP/1.0
>>> 10-0 16384 0/4/4 _ 0.00 9 28 0.0 0.01 0.01 02.client.de
>>> apache.local GET /sample/pages/sample.jsf HTTP/1.0
>>> 11-0 16385 0/3/3 _ 0.00 4 1 0.0 0.01 0.01 01.client.de
>>> apache.local GET /status HTTP/1.0
>>>
>>> ##
>>> mod_proxy_balancer shows something like
>>>
>>> Type Sticky Sessions Force Sticky Sessions Retries LB Method Locking
>
>>> Recover Wait Time Max Reply Timeouts
>>> lb True False 2 Request
> Optimistic
>>> 60 0
>>>
>>> Good Degraded Bad/Stopped Busy Max Busy Next Maintenance
>>> 1 1 0 0 1 58/120
>>>
>>> Balancer Members [Hide]
>>>
>>> Name Type Host Addr Act
> State
>>> D F M V Acc Err CE RE Wr Rd Busy Max Route RR Cd Rs
>>> [E|R] eco75st1 ajp13 app:18009 10.80.1.10:18009 ACT OK/IDLE 0 1 1 0
> 2
>>> 0 0 0 1.1K 6.1K 0 1 jvm1 0/0
>>> [E|R] eco75st2 ajp13 app:28009 10.80.1.10:28009 DIS OK/IDLE 0 1 1 0
> 0
>>> 0 0 0 0 0 0 0 jvm2 0/0
>>>
>>>
>>> Thanks for any ideas in advance.
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>>
>>>
>
> ---------------------------------------------------------------------
> 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
>
>
--
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
---------------------------------------------------------------------
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
Re: [users@httpd] statistic for mod_jk/mod_proxy requests by source-ip
Posted by ap <bi...@antworte.me>.
Hi Sander,
thanks for your answer, but could you give me some more detail?
Is there an httpd2 command option to show these information?
Thanks for your help in advance.
T.
On Sat, 24 Apr 2010 15:53:26 -0700, Sander Temme <sc...@apache.org>
wrote:
> On Apr 24, 2010, at 1:47 PM, ap wrote:
>
>>
>> Hi all,
>>
http://mail2.tiri.de/?_task=mail&_id=16128969284bd402ee24c06&_action=compose#
>> is it possible to build a relation between mod_status and
>> mod_proxy/mod_jk
>> ?
>
> Probably. Mod_ssl registers something on mod_status: you might look at
> how it does that.
>
> S.
>
>> I.e. I need an answer to the question
>>
>> how many client (client-ip) addresses are connected to a specific
worker?
>>
>> ##
>> mod_status shows something like
>>
>> Srv PID Acc M CPU SS Req Conn Child Slot Client
>> VHost Request
>> 0-0 21308 0/7/7 _ 0.00 15 5 0.0 0.01 0.01 02.client.de
>> apache.local GET /sample HTTP/1.0
>> 1-0 21309 0/12/12 _ 0.02 38 1 0.0 0.02 0.02 01.client.de
>> apache.local GET /status HTTP/1.0
>> 2-0 21310 0/6/6 _ 0.01 50 1 0.0 0.01 0.01 01.client.de
>> apache.local GET /status HTTP/1.0
>> 3-0 21311 0/9/9 _ 0.01 57 1 0.0 0.02 0.02 01.client.de
>> apache.local GET /balancer-manager HTTP/1.0
>> 4-0 21312 0/7/7 W 0.01 0 0 0.0 0.01 0.01 02.client.de
>> apache.local GET /status HTTP/1.0
>> 5-0 21316 0/6/6 _ 0.01 34 1 0.0 0.01 0.01 01.client.de
>> apache.local GET /status HTTP/1.0
>> 6-0 - 0/0/3 . 0.00 92717 0 0.0 0.00 0.00 127.0.0.1
>> apache.local OPTIONS * HTTP/1.0
>> 7-0 - 0/0/5 . 0.00 92716 0 0.0 0.00 0.02 127.0.0.1
>> apache.local OPTIONS * HTTP/1.0
>> 8-0 21503 0/7/7 _ 0.02 268 3 0.0 0.02 0.02 01.client.de
>> apache.local GET /balancer-manager HTTP/1.0
>> 9-0 16383 0/3/3 _ 0.00 13 4 0.0 0.00 0.00 02.client.de
>> apache.local GET /sample/ HTTP/1.0
>> 10-0 16384 0/4/4 _ 0.00 9 28 0.0 0.01 0.01 02.client.de
>> apache.local GET /sample/pages/sample.jsf HTTP/1.0
>> 11-0 16385 0/3/3 _ 0.00 4 1 0.0 0.01 0.01 01.client.de
>> apache.local GET /status HTTP/1.0
>>
>> ##
>> mod_proxy_balancer shows something like
>>
>> Type Sticky Sessions Force Sticky Sessions Retries LB Method Locking
>> Recover Wait Time Max Reply Timeouts
>> lb True False 2 Request
Optimistic
>> 60 0
>>
>> Good Degraded Bad/Stopped Busy Max Busy Next Maintenance
>> 1 1 0 0 1 58/120
>>
>> Balancer Members [Hide]
>>
>> Name Type Host Addr Act
State
>> D F M V Acc Err CE RE Wr Rd Busy Max Route RR Cd Rs
>> [E|R] eco75st1 ajp13 app:18009 10.80.1.10:18009 ACT OK/IDLE 0 1 1 0
2
>> 0 0 0 1.1K 6.1K 0 1 jvm1 0/0
>> [E|R] eco75st2 ajp13 app:28009 10.80.1.10:28009 DIS OK/IDLE 0 1 1 0
0
>> 0 0 0 0 0 0 0 jvm2 0/0
>>
>>
>> Thanks for any ideas in advance.
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
---------------------------------------------------------------------
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
Re: [users@httpd] statistic for mod_jk/mod_proxy requests by source-ip
Posted by Sander Temme <sc...@apache.org>.
On Apr 24, 2010, at 1:47 PM, ap wrote:
>
> Hi all,
>
> is it possible to build a relation between mod_status and mod_proxy/mod_jk
> ?
Probably. Mod_ssl registers something on mod_status: you might look at how it does that.
S.
> I.e. I need an answer to the question
>
> how many client (client-ip) addresses are connected to a specific worker?
>
> ##
> mod_status shows something like
>
> Srv PID Acc M CPU SS Req Conn Child Slot Client
> VHost Request
> 0-0 21308 0/7/7 _ 0.00 15 5 0.0 0.01 0.01 02.client.de
> apache.local GET /sample HTTP/1.0
> 1-0 21309 0/12/12 _ 0.02 38 1 0.0 0.02 0.02 01.client.de
> apache.local GET /status HTTP/1.0
> 2-0 21310 0/6/6 _ 0.01 50 1 0.0 0.01 0.01 01.client.de
> apache.local GET /status HTTP/1.0
> 3-0 21311 0/9/9 _ 0.01 57 1 0.0 0.02 0.02 01.client.de
> apache.local GET /balancer-manager HTTP/1.0
> 4-0 21312 0/7/7 W 0.01 0 0 0.0 0.01 0.01 02.client.de
> apache.local GET /status HTTP/1.0
> 5-0 21316 0/6/6 _ 0.01 34 1 0.0 0.01 0.01 01.client.de
> apache.local GET /status HTTP/1.0
> 6-0 - 0/0/3 . 0.00 92717 0 0.0 0.00 0.00 127.0.0.1
> apache.local OPTIONS * HTTP/1.0
> 7-0 - 0/0/5 . 0.00 92716 0 0.0 0.00 0.02 127.0.0.1
> apache.local OPTIONS * HTTP/1.0
> 8-0 21503 0/7/7 _ 0.02 268 3 0.0 0.02 0.02 01.client.de
> apache.local GET /balancer-manager HTTP/1.0
> 9-0 16383 0/3/3 _ 0.00 13 4 0.0 0.00 0.00 02.client.de
> apache.local GET /sample/ HTTP/1.0
> 10-0 16384 0/4/4 _ 0.00 9 28 0.0 0.01 0.01 02.client.de
> apache.local GET /sample/pages/sample.jsf HTTP/1.0
> 11-0 16385 0/3/3 _ 0.00 4 1 0.0 0.01 0.01 01.client.de
> apache.local GET /status HTTP/1.0
>
> ##
> mod_proxy_balancer shows something like
>
> Type Sticky Sessions Force Sticky Sessions Retries LB Method Locking
> Recover Wait Time Max Reply Timeouts
> lb True False 2 Request Optimistic
> 60 0
>
> Good Degraded Bad/Stopped Busy Max Busy Next Maintenance
> 1 1 0 0 1 58/120
>
> Balancer Members [Hide]
>
> Name Type Host Addr Act State
> D F M V Acc Err CE RE Wr Rd Busy Max Route RR Cd Rs
> [E|R] eco75st1 ajp13 app:18009 10.80.1.10:18009 ACT OK/IDLE 0 1 1 0 2
> 0 0 0 1.1K 6.1K 0 1 jvm1 0/0
> [E|R] eco75st2 ajp13 app:28009 10.80.1.10:28009 DIS OK/IDLE 0 1 1 0 0
> 0 0 0 0 0 0 0 jvm2 0/0
>
>
> Thanks for any ideas in advance.
>
> ---------------------------------------------------------------------
> 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
>
>
--
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
---------------------------------------------------------------------
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