On Wed, Apr 2, 2008 at 5:22 AM, Nedeljko Vasic <vasic.nedeljko@xxxxxxxxx> 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 http://httpd.apache.org/docs/2.2/env.html. > 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", "mylib.so",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 covener@xxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx