[peruser] Only one child left

Stefan Seufert stefan at seuf.de
Tue Jan 30 13:24:36 MST 2007


Replying to myself:

> (This problem is another argument for having a handler to display the
> contents of the child_info_table. I'll try to find some free time in
> order to code one).

I had a look at mod_status and noticed that it already has a nice
extension hook. I extended peruser to register this hook and to dump its
child_info table when the status is requested. Please find the patch
attached to this email. You should compile and enable mod_status as
usual (don't forget to set ExtendedStatus to "on"). If you call your
/server-status handler as usual you should notice a new section at the
end of the output which will look like this:

> ID	PID	STATUS	TYPE		UID	GID	CHROOT	INPUT	OUTPUT	SOCK_FD	TOTAL P	MAX P	IDLE P	MIN FREE PROCESSORS
> 0	30450	ACTIVE	MULTIPLEXER	65534	65534	(null)	11	12	-1	1	10	1	2
> 1	30451	ACTIVE	PROCESSOR	1002	407	(null)	13	14	-1	4	20	3	4
> 2	30455	ACTIVE	PROCESSOR	1003	408	(null)	17	18	-1	4	20	4	4
> 3	30452	ACTIVE	WORKER		1002	407	(null)	13	14	-1	4	20	3	4
> 4	30453	ACTIVE	WORKER		1002	407	(null)	13	14	-1	4	20	3	4
> 5	30454	ACTIVE	WORKER		1002	407	(null)	13	14	-1	4	20	3	4
> 6	30456	ACTIVE	WORKER		1003	408	(null)	17	18	-1	4	20	4	4
> 7	30457	ACTIVE	WORKER		1003	408	(null)	17	18	-1	4	20	4	4
> 8	30458	ACTIVE	WORKER		1003	408	(null)	17	18	-1	4	20	4	4

I hope that people will find this useful in monitoring/debugging peruser.

Janno: Can you try to figure out what's going on using this patch? The
stuff in your last emails was pretty hard to analyze because of all the
word wrapping. If you cannot teach your email client to leave the lines
intact then an attachment/url might be the better choice.

Sean: It looks like a lot of nice patches and fixes are floating around
right now. Can you please try to wrap them up in a new release? At the
moment everybody seems to have different patches applied which makes
sorting out stuff really ugly. Call it "beta" or something like that if
you feel that it is not stable enough for a release.

Stefan




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: peruser.c.status.patch
Url: http://www.telana.com/pipermail/peruser/attachments/20070130/108ec48e/attachment.pl 


More information about the Peruser mailing list