httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <>
Subject Re: [users@httpd] Profiling Apache with LD_PRELOAD
Date Wed, 02 Apr 2008 12:39:19 GMT
On Wed, Apr 2, 2008 at 5:22 AM, Nedeljko Vasic <> wrote:
> I'm trying to profile Apache Web server 2.2.8 on my Debian machine.
> Precisely, I need to measure mean values and standard deviations for each
> system call. At this point, T'm using LD_PRELOAD environment variable to
> create a simple imposer for system calls. I thought that using SetEnv
> directive within httpd.cong will help, but it wasn't the case. It only helps
> for cgi srcipts as stated here
> However, I still cannot catch any workers' activity. It seems to me that I
> need to find a sanitization place, where children are created. So, I
> inserted  setenv("LD_PRELOAD", "",1) into make_child function of
> ./server/mpm/prefork/prefork.c but didn't get expected result. I think that
> apache is keep cleaning environment variables elsewhere. Could you please
> suggest my any potential approach, I'm pretty much desperate after a few
> days working on this :) All comments are more then welcome.

Add the environment setup to bin/envvars -- ISTR many of these LD_*
don't effect a process that's already running.

Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message