You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by marco di sano <ma...@gmail.com> on 2011/05/03 17:23:37 UTC

[users@httpd] Apache monitoring

Hi all,
I'm new in this group.
I ask you if it is possible to monitoring the function calls that Apache
makes when it must satisfy a request. For example, suppose we have a LAMP
architecture (this is my architecture) and I want to display all the users
in a database table (it exists). Is it possible to trace all the call
functions that Apache makes to achieve this goal?I am not interested to log
errors, but the call functions that belong to the apache library.
I want to know what are the *function libraries* that Apache calls when* it
serves an http request*(for example).
I tried to use strace but it traces the Unix system calls and not the php
functions that Apache does when a request must to be served.

Somebody help me!

Thanks

Re: [users@httpd] Apache monitoring

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 5/3/2011 10:23 AM, marco di sano wrote:
> I ask you if it is possible to monitoring the function calls that Apache makes when it
> must satisfy a request.

> I tried to use strace but it traces the Unix system calls and not the php functions that
> Apache does when a request must to be served.

If strace doesn't help, perhaps dtrace would help.  Lots of tutorials on the web.

---------------------------------------------------------------------
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] Apache monitoring

Posted by Lee <le...@gmail.com>.
This is the Apache web server users' group.

Your mention of PHP suggests you might be in the wrong group.

This is not a PHP group.

HTH
Lee

On 03/05/2011 17:23, marco di sano wrote:
> Hi all,
> I'm new in this group.
> I ask you if it is possible to monitoring the function calls that 
> Apache makes when it must satisfy a request. For example, suppose we 
> have a LAMP architecture (this is my architecture) and I want to 
> display all the users in a database table (it exists). Is it possible 
> to trace all the call functions that Apache makes to achieve this 
> goal?I am not interested to log errors, but the call functions that 
> belong to the apache library.
> I want to know what are the *function libraries* that Apache calls 
> when*it serves an http request*(for example).
> I tried to use strace but it traces the Unix system calls and not the 
> php functions that Apache does when a request must to be served.
>
> Somebody help me!
>
> Thanks

Re: [users@httpd] Apache monitoring

Posted by Harsimranjit singh Kler <si...@gmail.com>.
Check this

http://httpd.apache.org/docs/2.0/mod/mod_status.html

May be this is helpful for you.

On Sat, May 7, 2011 at 2:39 PM, marco <ma...@gmail.com> wrote:

>   On 06/05/2011 22:43, Harsimranjit singh Kler wrote:
>
> Hi
> If you simply want to monitor Apache You Can Enable Following two module in
> apache httpd_conf:
> server-info
> server-status
>
> On Sat, May 7, 2011 at 1:09 AM, marco <ma...@gmail.com> wrote:
>
>> On 03/05/2011 17:41, Simone Caruso wrote:
>>
>>> Il 03/05/2011 17:23, marco di sano ha scritto:
>>>
>>>> Hi all,
>>>> I'm new in this group.
>>>> I ask you if it is possible to monitoring the function calls that Apache
>>>> makes
>>>> when it must satisfy a request. For example, suppose we have a LAMP
>>>> architecture
>>>> (this is my architecture) and I want to display all the users in a
>>>> database
>>>> table (it exists). Is it possible to trace all the call functions that
>>>> Apache
>>>> makes to achieve this goal?I am not interested to log errors, but the
>>>> call
>>>> functions that belong to the apache library.
>>>> I want to know what are the *function libraries* that Apache calls
>>>> when*it
>>>> serves an http request*(for example).
>>>> I tried to use strace but it traces the Unix system calls and not the
>>>> php
>>>> functions that Apache does when a request must to be served.
>>>>
>>>> You can try with gdb, but this is not a apache related topic, maybe u'r
>>> are a
>>> little confused :P
>>>
>>> Ok, so i ask you what is the apache module that manages http request?
>> Can somebody help me?
>>
>> Thanks.
>> Sorry if I asked you previous question badly!!!
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
> So you are telling me that if I activate this two modules, Apache will log
> the C functions that serves an http request?
> I have learned that Apache have a lot of modules written in C. These
> modules are compiled and loaded into the server. So in this way (that is
> activating server-info and server-status) can I see this functions?
>
> Hi
>
>
>
>

Re: [users@httpd] Apache monitoring

Posted by marco <ma...@gmail.com>.
On 06/05/2011 22:43, Harsimranjit singh Kler wrote:
> Hi
> If you simply want to monitor Apache You Can Enable Following two 
> module in apache httpd_conf:
> server-info
> server-status
>
> On Sat, May 7, 2011 at 1:09 AM, marco <marcodisano@gmail.com 
> <ma...@gmail.com>> wrote:
>
>     On 03/05/2011 17:41, Simone Caruso wrote:
>
>         Il 03/05/2011 17:23, marco di sano ha scritto:
>
>             Hi all,
>             I'm new in this group.
>             I ask you if it is possible to monitoring the function
>             calls that Apache makes
>             when it must satisfy a request. For example, suppose we
>             have a LAMP architecture
>             (this is my architecture) and I want to display all the
>             users in a database
>             table (it exists). Is it possible to trace all the call
>             functions that Apache
>             makes to achieve this goal?I am not interested to log
>             errors, but the call
>             functions that belong to the apache library.
>             I want to know what are the *function libraries* that
>             Apache calls when*it
>             serves an http request*(for example).
>             I tried to use strace but it traces the Unix system calls
>             and not the php
>             functions that Apache does when a request must to be served.
>
>         You can try with gdb, but this is not a apache related topic,
>         maybe u'r are a
>         little confused :P
>
>     Ok, so i ask you what is the apache module that manages http request?
>     Can somebody help me?
>
>     Thanks.
>     Sorry if I asked you previous question badly!!!
>
>
>     ---------------------------------------------------------------------
>     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
>     <ma...@httpd.apache.org>
>      "   from the digest: users-digest-unsubscribe@httpd.apache.org
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>
>
So you are telling me that if I activate this two modules, Apache will 
log the C functions that serves an http request?
I have learned that Apache have a lot of modules written in C. These 
modules are compiled and loaded into the server. So in this way (that is 
activating server-info and server-status) can I see this functions?

Hi




Re: [users@httpd] Apache monitoring

Posted by Harsimranjit singh Kler <si...@gmail.com>.
Hi
If you simply want to monitor Apache You Can Enable Following two module in
apache httpd_conf:
server-info
server-status

On Sat, May 7, 2011 at 1:09 AM, marco <ma...@gmail.com> wrote:

> On 03/05/2011 17:41, Simone Caruso wrote:
>
>> Il 03/05/2011 17:23, marco di sano ha scritto:
>>
>>> Hi all,
>>> I'm new in this group.
>>> I ask you if it is possible to monitoring the function calls that Apache
>>> makes
>>> when it must satisfy a request. For example, suppose we have a LAMP
>>> architecture
>>> (this is my architecture) and I want to display all the users in a
>>> database
>>> table (it exists). Is it possible to trace all the call functions that
>>> Apache
>>> makes to achieve this goal?I am not interested to log errors, but the
>>> call
>>> functions that belong to the apache library.
>>> I want to know what are the *function libraries* that Apache calls
>>> when*it
>>> serves an http request*(for example).
>>> I tried to use strace but it traces the Unix system calls and not the php
>>> functions that Apache does when a request must to be served.
>>>
>>> You can try with gdb, but this is not a apache related topic, maybe u'r
>> are a
>> little confused :P
>>
>> Ok, so i ask you what is the apache module that manages http request?
> Can somebody help me?
>
> Thanks.
> Sorry if I asked you previous question badly!!!
>
>
> ---------------------------------------------------------------------
> 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] Apache monitoring

Posted by marco <ma...@gmail.com>.
On 07/05/2011 12:46, Simone Caruso wrote:
> Il 06/05/2011 21:39, marco ha scritto:
>> For example, suppose we have a LAMP architecture (this is my architecture) and I
>> want to display all the users in a database table (it exists)
> ...you need to trace mod_php... not apache.
>
> with gdb try break on "apache_php_module_main", "php_send", and
> "ap_process_request" to see something... u better read the sources anyway
>
Hi Simone,
maybe you answer could help me, but i have no idea how to use gdb with 
apache php module during apache server is active.
If i want to trace the c function of php module, how can i do this?

Please help me
Thanks for your answer!!!

---------------------------------------------------------------------
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] Apache monitoring

Posted by Simone Caruso <in...@simonecaruso.com>.
Il 06/05/2011 21:39, marco ha scritto:
> For example, suppose we have a LAMP architecture (this is my architecture) and I
> want to display all the users in a database table (it exists)
...you need to trace mod_php... not apache.

with gdb try break on "apache_php_module_main", "php_send", and
"ap_process_request" to see something... u better read the sources anyway

-- 
Simone Caruso
IT Consultant
+39 349 65 90 805
p.iva: 03045250838

---------------------------------------------------------------------
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] Apache monitoring

Posted by marco <ma...@gmail.com>.
On 03/05/2011 17:41, Simone Caruso wrote:
> Il 03/05/2011 17:23, marco di sano ha scritto:
>> Hi all,
>> I'm new in this group.
>> I ask you if it is possible to monitoring the function calls that Apache makes
>> when it must satisfy a request. For example, suppose we have a LAMP architecture
>> (this is my architecture) and I want to display all the users in a database
>> table (it exists). Is it possible to trace all the call functions that Apache
>> makes to achieve this goal?I am not interested to log errors, but the call
>> functions that belong to the apache library.
>> I want to know what are the *function libraries* that Apache calls when*it
>> serves an http request*(for example).
>> I tried to use strace but it traces the Unix system calls and not the php
>> functions that Apache does when a request must to be served.
>>
> You can try with gdb, but this is not a apache related topic, maybe u'r are a
> little confused :P
>
Ok, so i ask you what is the apache module that manages http request?
Can somebody help me?

Thanks.
Sorry if I asked you previous question badly!!!

---------------------------------------------------------------------
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] Apache monitoring

Posted by Simone Caruso <in...@simonecaruso.com>.
Il 03/05/2011 17:23, marco di sano ha scritto:
> Hi all,
> I'm new in this group.
> I ask you if it is possible to monitoring the function calls that Apache makes
> when it must satisfy a request. For example, suppose we have a LAMP architecture
> (this is my architecture) and I want to display all the users in a database
> table (it exists). Is it possible to trace all the call functions that Apache
> makes to achieve this goal?I am not interested to log errors, but the call
> functions that belong to the apache library.
> I want to know what are the *function libraries* that Apache calls when*it
> serves an http request*(for example).
> I tried to use strace but it traces the Unix system calls and not the php
> functions that Apache does when a request must to be served.
> 

You can try with gdb, but this is not a apache related topic, maybe u'r are a
little confused :P

-- 
Simone Caruso
IT Consultant
+39 349 65 90 805
p.iva: 03045250838

---------------------------------------------------------------------
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