Meir Yanovich | 1 Jul 2008 08:07
Picon

how does apache serves connections and requests ?

Hello all
i like to ask basic question about Apache and how does it servers the requests
i was reading and also saw that in unix machine its spawn process at
start and every process uses N threads
and in windows it is multithread is that correct ? does every single
thread serve one connection and its request ? or there is some
mechanism that enable every thread serve several connections and there requests
does Apache support multiplexer architecture ?

thanks

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Sascha Kersken | 1 Jul 2008 09:13
Picon

Re: how does apache serves connections and requests ?

Hi,

> Hello all
> i like to ask basic question about Apache and how does it servers the requests
> i was reading and also saw that in unix machine its spawn process at
> start and every process uses N threads
> and in windows it is multithread is that correct ? does every single
> thread serve one connection and its request ? or there is some
> mechanism that enable every thread serve several connections and there requests
> does Apache support multiplexer architecture ?

I guess that most of these questions can be answered by reading the 
following document from the official Apache documentation:

http://httpd.apache.org/docs/2.2/en/mpm.html

Regards
Sascha

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Meir Yanovich | 1 Jul 2008 09:41
Picon

Re: how does apache serves connections and requests ?

Thanks for the link
so i understand its does not support multiplexer architecture.am i right ?

On Tue, Jul 1, 2008 at 10:13 AM, Sascha Kersken <sk <at> lingoworld.de> wrote:
> Hi,
>
>> Hello all
>> i like to ask basic question about Apache and how does it servers the
>> requests
>> i was reading and also saw that in unix machine its spawn process at
>> start and every process uses N threads
>> and in windows it is multithread is that correct ? does every single
>> thread serve one connection and its request ? or there is some
>> mechanism that enable every thread serve several connections and there
>> requests
>> does Apache support multiplexer architecture ?
>
> I guess that most of these questions can be answered by reading the
> following document from the official Apache documentation:
>
> http://httpd.apache.org/docs/2.2/en/mpm.html
>
>
> Regards
> Sascha
>
> ---------------------------------------------------------------------
> 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 <at> httpd.apache.org
(Continue reading)

Matus UHLAR - fantomas | 1 Jul 2008 10:05
Picon
Favicon

Re: [Fwd: Redirect URL with arguments]

On 30.06.08 14:29, Sylvain Viollat wrote:
> Thanks for your answer. I've try to use Redirect instead of 
> RedirectMatch but result is the same. I'm still getting redirect with 
> the end of the URL.

> >>RedirectMatch permanent / http://www.mydomain.com
> >>
> >>The problem is that all queries which contain something after the .net/ 
> >>(eg.
> >>index.php?ref=10), are redirect to http://www.mydomain.com/ref=10

simply changing RedirectMatch to Redirect won't help you. both directived
will change old matching part to new, e.g.:

Redirect / /blah/

will change /hello to /blah/hello
Note the trailing slash, it's important, because:

Redirect / /blah

will change /hello to /blahhello

You should try

RedirectMatch /.* http://www.mydomain.com.

which could work as you wish.
--

-- 
Matus UHLAR - fantomas, uhlar <at> fantomas.sk ; http://www.fantomas.sk/
(Continue reading)

CR | 1 Jul 2008 14:54
Picon

Many defunct processes, cpu use with apache 2.0.52

I have Apache running about 5 vhosts, few of which really get much in 
the way of hits. If I run top, I see a lot of <defunct> httpd processes, 
and each one is listed as using 1-5% of the CPU. They usually show up 
and disappear in a cycle. Here is a sample:

top - 08:32:31 up 416 days,  8:14,  2 users,  load average: 2.40, 2.36, 2.17
Tasks: 107 total,   5 running,  90 sleeping,   0 stopped,  12 zombie
Cpu(s): 56.3% us, 21.5% sy,  0.0% ni, 22.2% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   1027556k total,  1010636k used,    16920k free,   304016k buffers
Swap:  2040244k total,    31368k used,  2008876k free,   379012k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  6223 www       16   0     0    0    0 Z  2.3  0.0   0:00.07 httpd 
<defunct>
  6254 www       25   0     0    0    0 Z  2.3  0.0   0:00.07 httpd 
<defunct>
  6256 www       17   0     0    0    0 Z  2.3  0.0   0:00.07 httpd 
<defunct>
  6253 www       25   0     0    0    0 Z  2.0  0.0   0:00.06 httpd 
<defunct>
  6255 www       25   0     0    0    0 Z  2.0  0.0   0:00.06 httpd 
<defunct>
  6257 www       19   0     0    0    0 Z  2.0  0.0   0:00.06 httpd 
<defunct>
  6258 www       17   0     0    0    0 Z  2.0  0.0   0:00.06 httpd 
<defunct>
  6259 www       16   0     0    0    0 Z  2.0  0.0   0:00.06 httpd 
<defunct>
  6260 www       21   0     0    0    0 Z  2.0  0.0   0:00.06 httpd 
<defunct>
(Continue reading)

Joshua Slive | 1 Jul 2008 17:23
Picon

Re: how does apache serves connections and requests ?

On Tue, Jul 1, 2008 at 3:41 AM, Meir Yanovich <meiry242 <at> gmail.com> wrote:
> Thanks for the link
> so i understand its does not support multiplexer architecture.am i right ?

I don't think "multiplexer architecture" is a well-defined concept.

I believe what you are asking about is typically called "event-driven"
processing. Look at the "event" mpm for a first step in that
direction. But in general, it is true that apache devotes one thread
or process to each connection.

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

John A Parker | 1 Jul 2008 20:29
Picon
Favicon

Incorporating apr-1.3.2 into httpd-2.2.9 build

Good afternoon.

Hopefully I'm not about to look like an idiot by asking the 
following, but if I do forgive me.

I too am having the issue of the apr install portion of my 
httpd-2.2.9 build failing due to an empty APU_MODULES assignment. The 
error detail I get is:

Making install in apr-util
make[2]: Entering directory `.../apache_builds/httpd-2.2.9/srclib/apr-util'
.../apache_builds/httpd-2.2.9/srclib/apr/build/mkdir.sh 
.../apache_2.2.9_rel01/lib/apr-util-1
/bin/bash: -c: line 1: syntax error near unexpected token `;'
/bin/bash: -c: line 1: `for m in ; do /bin/bash 
.../apache_builds/httpd-2.2.9/srclib/apr/libtool  --silent --mode=install

I can see where this is an acknowledged issue fixed in apr-1.3.2. 
What I can't find anywhere is how to incorporate this updated apr 
into my apache build.

Can anyone provide "detailed" directions for me on how to accomplish this?

Thanks in advance

John A. Parker
Cornell University

jap54 <at> cornell.edu
607-255-9356
(Continue reading)

William A. Rowe, Jr. | 1 Jul 2008 20:48

Re: Incorporating apr-1.3.2 into httpd-2.2.9 build

John A Parker wrote:
> 
> I can see where this is an acknowledged issue fixed in apr-1.3.2. What I 
> can't find anywhere is how to incorporate this updated apr into my 
> apache build.
> 
> Can anyone provide "detailed" directions for me on how to accomplish this?

two choices;

1) build and install 1.3.2 apr, then apr-util, then httpd.  Seperately.

2) unpack the contents of the 1.3.2 apr and apr-util tarballs on top of your
    httpd-2.2.9/srclib/ directories of the name name (be sure you don't keep
    the -1.3.2 designations, but use the naked apr/ and apr-util/ dir names)

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Roberto Tortolero | 1 Jul 2008 21:15
Picon

troubles with xajax+apache+php5

hi people... i have a question...

is anyone found a glitch between apache ans xajax??? because i'm having a problem with xajax framework on Ubuntu distro... On windows works fine but when i'm running the script on Ubuntu he explode... But i've change the buffer on the php script and on apache and i'm having the same error over and over again... If any one can help with this i'lll be able to sleep right again... LoL

Thanks on advance...

Alex Mizrahi | 1 Jul 2008 22:13
Picon

ProxyPass and ExtFilter

ProxyPass and ExtFilter do not work together for me..

relevant pieces of config:

  ExtFilterDefine inject-into-google mode=output cmd="/bin/sed  
s/head/tail/g"
  LogLevel debug

   <Location /proxy/google>
         allow from all
         SetOutputFilter inject-into-google
         ProxyPass http://www.google.com
         ExtFilterOptions DebugLevel=9 LogStderr
   </Location>

s/head/tail/ is not performed. however, if i change it to s/o/e/g,
*something* happens -- browser says it's not able to display
page, i guess because substitution is performed in headers.

so, substitution works only for single letter combination,
but doesn't work for four-letter combinations. i've also tried
two letter combinations -- it seems it works randomly.

error.log looks like this:

[Tue Jul 01 06:45:13 2008] [debug] mod_proxy_http.c(1448): proxy: start  
body send
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(618): [client  
192.168.92.1] filtering `/proxy/google/search' of type `text/html;  
charset=UTF-8' through `/bin/sed', cfg ExtFilterOptions DebugLevel=9  
LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype  
(unchanged)
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] apr_file_read(child output), len 4096
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (11)Resource temporarily unavailable: apr_file_read(child  
output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] apr_file_read(child output), len 2082
[Tue Jul 01 06:45:13 2008] [debug] mod_ext_filter.c(810): [client  
192.168.92.1] (70014)End of file found: apr_file_read(child output), len -1
[Tue Jul 01 06:45:13 2008] [debug] mod_proxy_http.c(1537): proxy: end body  
send
[Tue Jul 01 06:45:13 2008] [debug] proxy_util.c(1780): proxy: HTTP: has  
released connection for (www.google.com)

i'm using Debian GNU/Linux 4, x86, apache2 version 2.2.3-4+etch4

--

-- 
with best regards, Alex 'killer_storm' Mizrahi.

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Gmane