httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <>
Subject Re: 2.0.30-dev load spiking [was: upgrade to FreeBSD 4.5-PRERELEASE]
Date Wed, 02 Jan 2002 21:29:30 GMT
Brian Pane wrote:

> Do you have a way to take a snapshot of each httpd process's stack
> backtrace?  On Solaris, I'd do this by running /usr/proc/bin/pstack
> on each pid; I don't know if FreeBSD has a similar functionality.

ummm, let's see:

[gregames@daedalus gregames]$ pstack
bash: pstack: command not found
[gregames@daedalus gregames]$ ls /usr/proc
ls: /usr/proc: No such file or directory

nope, sorry.  Of course we could get backtraces with gcore, but would
probably fill up the filesystem in the process.  

Actually, if we had a way of dumping just the two processes that own the
two CPUs when we get one of these spikes, it might be feasible. 
Especially if the trap/shell script/whatever would exit once it did its
thing, and didn't dump itself.

> This would give us a picture of what all those runnable processes
> are doing.

The processes that aren't dispatched are probably innocent bystanders,
at least until they get ahold of a CPU.  But I suppose some of them
could have been doing bad things in previous time slices.


View raw message