Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Profiling apache 2.0.55 using Gprof

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


plfgoa at gmail

Jul 23, 2008, 11:21 AM

Post #1 of 2 (358 views)
Permalink
Profiling apache 2.0.55 using Gprof

Hi,

I have been trying to profile apache 2.0.55 using Gprof by compiling
it with "-g -pg" option.The mpm used is worker. MaxRequestsPerChild is
changed to 1 in httpd.conf and I Start apache with "httpd -X" option
and make a single and then stop it.The gmon.out file produced does
show some details but when I make multiple requests say , 10 thousand
requests , although the number of calls are recorded it doesn't show
up time used by those function calls. It shows up as 0.00 . If the
server takes lets say , 10 minutes to serve/process the ten thousand
requests , shouldn't it be reflected in the gprof output also ? could
it be multithreading issue because of worker mpm? or does gprof only
shows time for a single function call rather than a cumulative amount
of time used by all the calls made to a function ?

Any help will be appreciated and thanks in advance.


-Paras

---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


plfgoa at gmail

Jul 24, 2008, 5:06 AM

Post #2 of 2 (345 views)
Permalink
Re: Profiling apache 2.0.55 using Gprof [In reply to]

Hi,

Has anyone tried this "http://sam.zoy.org/writings/programming/gprof.html" ?

-Paras

On Wed, Jul 23, 2008 at 11:51 PM, Paras Fadte <plfgoa [at] gmail> wrote:
> Hi,
>
> I have been trying to profile apache 2.0.55 using Gprof by compiling
> it with "-g -pg" option.The mpm used is worker. MaxRequestsPerChild is
> changed to 1 in httpd.conf and I Start apache with "httpd -X" option
> and make a single and then stop it.The gmon.out file produced does
> show some details but when I make multiple requests say , 10 thousand
> requests , although the number of calls are recorded it doesn't show
> up time used by those function calls. It shows up as 0.00 . If the
> server takes lets say , 10 minutes to serve/process the ten thousand
> requests , shouldn't it be reflected in the gprof output also ? could
> it be multithreading issue because of worker mpm? or does gprof only
> shows time for a single function call rather than a cumulative amount
> of time used by all the calls made to a function ?
>
> Any help will be appreciated and thanks in advance.
>
>
> -Paras
>

---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.