httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject httpd -X: does it still work?
Date Sat, 12 Jan 2013 12:26:25 GMT
Hi all,

In theory, the -X flag is supposed to cause httpd to run a single worker, and not detach or
fork. What I'm finding in v2.4 is that despite the -X flag, httpd detaches anyway, and cranks
up the full set of threads.

Is this happening for anyone else, or just me?

This is what happens with prefork:

[root@tools01 httpd]# gdb --args /usr/sbin/httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf
-DSERVER_ENV_SANDBOX -DSERVER_DATACENTRE_LOCAL -DSERVER_CLASS_CORE -X
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...Reading symbols from /usr/lib/debug/usr/sbin/httpd.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf -DSERVER_ENV_SANDBOX
-DSERVER_DATACENTRE_LOCAL -DSERVER_CLASS_CORE -X
[Thread debugging using libthread_db enabled]
Detaching after fork from child process 4204.

Same with worker:

[root@tools01 httpd]# gdb --args /usr/sbin/httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf
-DSERVER_ENV_SANDBOX -DSERVER_DATACENTRE_LOCAL -DSERVER_CLASS_CORE -X
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...Reading symbols from /usr/lib/debug/usr/sbin/httpd.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf -DSERVER_ENV_SANDBOX
-DSERVER_DATACENTRE_LOCAL -DSERVER_CLASS_CORE -X
[Thread debugging using libthread_db enabled]
Detaching after fork from child process 4239.
[New Thread 0x7fffefc1c700 (LWP 4240)]
[New Thread 0x7fffef21b700 (LWP 4241)]
[New Thread 0x7fffee81a700 (LWP 4242)]
[New Thread 0x7fffede19700 (LWP 4243)]
[New Thread 0x7fffed418700 (LWP 4244)]
[New Thread 0x7fffeca17700 (LWP 4245)]
[New Thread 0x7fffe7fff700 (LWP 4246)]
[New Thread 0x7fffe75fe700 (LWP 4247)]
[New Thread 0x7fffe6bfd700 (LWP 4248)]
[New Thread 0x7fffe61fc700 (LWP 4249)]
[New Thread 0x7fffe57fb700 (LWP 4250)]
[New Thread 0x7fffe4dfa700 (LWP 4251)]
[New Thread 0x7fffe43f9700 (LWP 4252)]
[New Thread 0x7fffe39f8700 (LWP 4253)]
[New Thread 0x7fffe2ff7700 (LWP 4254)]
[New Thread 0x7fffe25f6700 (LWP 4255)]
[New Thread 0x7fffe1bf5700 (LWP 4256)]
[New Thread 0x7fffe11f4700 (LWP 4257)]
[New Thread 0x7fffe07f3700 (LWP 4258)]
[New Thread 0x7fffdfdf2700 (LWP 4259)]
[New Thread 0x7fffdf3f1700 (LWP 4260)]
[New Thread 0x7fffde9f0700 (LWP 4261)]
[New Thread 0x7fffddfef700 (LWP 4262)]
[New Thread 0x7fffdd5ee700 (LWP 4263)]
[New Thread 0x7fffdcbed700 (LWP 4264)]
[New Thread 0x7fffdc1ec700 (LWP 4265)]
[New Thread 0x7fffdb7eb700 (LWP 4266)]
[Thread 0x7fffefc1c700 (LWP 4240) exited]

Same with event:

[root@tools01 httpd]# gdb --args /usr/sbin/httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf
-DSERVER_ENV_SANDBOX -DSERVER_DATACENTRE_LOCAL -DSERVER_CLASS_CORE -X
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...Reading symbols from /usr/lib/debug/usr/sbin/httpd.debug...done.
done.
(gdb) run
Starting program: /usr/sbin/httpd -d /etc/httpd -f /etc/httpd/conf/httpd.conf -DSERVER_ENV_SANDBOX
-DSERVER_DATACENTRE_LOCAL -DSERVER_CLASS_CORE -X
[Thread debugging using libthread_db enabled]
Detaching after fork from child process 4276.
[New Thread 0x7fffefc19700 (LWP 4277)]
[New Thread 0x7fffef218700 (LWP 4278)]
[New Thread 0x7fffee817700 (LWP 4279)]
[New Thread 0x7fffede16700 (LWP 4280)]
[New Thread 0x7fffed415700 (LWP 4281)]
[New Thread 0x7fffeca14700 (LWP 4282)]
[New Thread 0x7fffe7fff700 (LWP 4283)]
[New Thread 0x7fffe75fe700 (LWP 4284)]
[New Thread 0x7fffe6bfd700 (LWP 4285)]
[New Thread 0x7fffe61fc700 (LWP 4286)]
[New Thread 0x7fffe57fb700 (LWP 4287)]
[New Thread 0x7fffe4dfa700 (LWP 4288)]
[New Thread 0x7fffe43f9700 (LWP 4289)]
[New Thread 0x7fffe39f8700 (LWP 4290)]
[New Thread 0x7fffe2ff7700 (LWP 4291)]
[New Thread 0x7fffe25f6700 (LWP 4292)]
[New Thread 0x7fffe1bf5700 (LWP 4293)]
[New Thread 0x7fffe11f4700 (LWP 4294)]
[New Thread 0x7fffe07f3700 (LWP 4295)]
[New Thread 0x7fffdfdf2700 (LWP 4296)]
[New Thread 0x7fffdf3f1700 (LWP 4297)]
[New Thread 0x7fffde9f0700 (LWP 4298)]
[New Thread 0x7fffddfef700 (LWP 4299)]
[New Thread 0x7fffdd5ee700 (LWP 4300)]
[New Thread 0x7fffdcbed700 (LWP 4301)]
[New Thread 0x7fffdc1ec700 (LWP 4302)]
[New Thread 0x7fffdb7eb700 (LWP 4303)]
[Thread 0x7fffefc19700 (LWP 4277) exited]

Regards,
Graham
--


Mime
View raw message