On Mon, 22 Mar 2004, Jeff Trawick wrote:
> Andre Breiler wrote:
>
> > What I noticed is that /status displays the last number of requested URIs
> > just fine with the 32bit version but forgets about some requests (note
> > counter is right) in the 64bit version.
>
> I'm not sure what is getting forgotten.
>
> Is the detailed (extended status) table truncated?
Yes thats what I mean.
>
> (the thing that looks like this)
>
> 801-5 - 0/0/2 . 0.02 150667 0 0.0 0.00 0.21
> 83.129.140.89 httpd.apache.org
> GET /docs/mod/core.html.en HTTP/1.1
Yes, an example (full table):
Srv PID Acc M CPU SS Req Conn Child Slot Client
VHost Request
0-0 13755 49/49/49 W 0.10 0 0 119.0 0.12 0.12
gatec-mgt.kw.bbc.co.uk webapp0-mgt.mh.bbc.co.uk GET /status/ HTTP/1.0
and after the next request:
Srv PID Acc M CPU SS Req Conn Child Slot Client
VHost Request
0-0 13755 0/53/53 W 0.14 0 0 0.0 0.12 0.12
192.168.200.12 webapp0-mgt.mh.bbc.co.uk GET /status/ HTTP/1.0
>
> If so, is it always truncated at the same entry?
No it changes (at least it looks so).
> What MPM are you using?
I'm using the worker mpm.
> Is it trucated at different points if you change ServerLimit or ThreadLimit?
Yes e.g. with:
ServerLimit 1
StartServers 1
MaxClients 1
MinSpareThreads 1
MaxSpareThreads 1
ThreadsPerChild 1
MaxRequestsPerChild 10000
I get one entry only.
While with:
ServerLimit 1
StartServers 1
MaxClients 5
MinSpareThreads 5
MaxSpareThreads 5
ThreadsPerChild 5
MaxRequestsPerChild 10000
I get two (didn't manage to get more than two).
e.g:
Srv PID Acc M CPU SS Req Conn Child Slot Client
VHost Request
0-0 14288 20/70/70 K 0.18 4 0 8.1 0.20 0.20
192.168.200.12 webapp0-mgt.mh.bbc.co.uk GET /images/sra.gif HTTP/1.0
0-0 14288 7/8/8 W 0.18 0 0 4.4 0.00 0.00
192.168.200.12 webapp0-mgt.mh.bbc.co.uk GET /status/ HTTP/1.0
With:
ServerLimit 5
StartServers 5
MaxClients 5
MinSpareThreads 1
MaxSpareThreads 1
ThreadsPerChild 1
MaxRequestsPerChild 1
and enough concurrent requests I get to see a max of 5 requests.
I've been just testing with older apache 2 versions (down to 2.0.46) and
it seems all behave the same (looks like I only noticed just now).
I'm probably going to attach a debugger but it would be good to know where
to start poking.
The second thing I'm going to try is compiling with gcc .
Hope that helps a bit,
Andre'
--
Andre' Breiler | Tel: +44 (0) 1628 407777
BBC Internet Services | URL: http://support.bbc.co.uk
Maiden House, Vanwell Road |
Maidenhead, SL6 4UB | Mail me if possible. And use a Subject line.