httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayara...@tcs.com
Subject Re: [users@httpd] How Apache manages all its children - Add More Info
Date Mon, 14 Aug 2006 18:24:05 GMT
<P>Hi,</P>
<P>I just tested with a use case which is having some bug in one of my components after
modifying the mod_echo module. My finding is that if one thread execution is having a bug
it kills all other threads also( I have atransaction in one thread. So all transactions are
in trouble). But Apache recovers in about 30 seconds. </P>
<P>Also suppose you want to utilize 100% of CPU. If it is a prefork model it is possible
for you to grab majority of the OS attention to your Server. But in a single process model
is it possible that the Apache process uses 100% CPU if load is there with multiple threads?</P>
<P>In Solaris I have attained 100% utilization of boxes with multiple processes.Please
correct if I am wrong. <BR></P>
<P><BR>Jayaram Ganapathy<BR></P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 V5DOTBL="true">

<TR vAlign=top>
<TD width="37%" bgColor=#e1e1e1 rowSpan=5><IMG height=1 alt="" src="/icons/ecblank.gif"
width=1 border=0><BR>
<DIV align=center><B><FONT style="FONT-SIZE: 9pt">"William A. Rowe, Jr."
&lt;wrowe@rowe-clan.net&gt;</FONT></B> 
<P><FONT style="FONT-SIZE: 9pt">08/14/2006 08:27 MST</FONT>
<HR>
<FONT size=-1>Please respond to users@httpd.apache.org</FONT>
<HR>
</DIV></TD>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">To</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="63%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR><FONT style="FONT-SIZE: 9pt">users@httpd.apache.org</FONT></TD></TR>
<TR vAlign=top>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">cc</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="63%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR></TD></TR>
<TR vAlign=top>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">bcc</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="63%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR></TD></TR>
<TR vAlign=top>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">Subject</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="63%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR><FONT style="FONT-SIZE: 9pt">Re: [users@httpd] How Apache manages
all its children - Add More Info</FONT></TD></TR>
<TR vAlign=top>
<TD width=0% bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0></TD>
<TD width="63%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR><FONT size=-1></FONT></TD></TR></TABLE><BR><TT>jayaram.g@tcs.com
wrote:<BR></TT><TT>&gt;<BR></TT><TT>&gt; I wonder
if anybody has tried Windows prefork for Apache 2.2.2.<BR></TT><BR><TT>The
issue is the lack-of-fork in the Win32 API. &nbsp;It's supported at the ntdll<BR></TT><TT>layer,
meaning that all the win32-ism's such as their thread-local storage<BR></TT><TT>model
don't survive the fork() at all. &nbsp;For pure NT kernel code it would be<BR></TT><TT>fine,
for blended code (even the clib uses the Win32 API) it's very quirky.<BR></TT><BR><TT>&gt;
Prefork model adds to the stability I feel.<BR></TT><BR><TT>For buggy
modules you are absolutely right, it disrupts only the connection<BR></TT><TT>which
caused the instability - and requests which don't trigger the bugs<BR></TT><TT>continue
to work fine.<BR></TT><BR><TT>&gt; I am not sure if code in one
thread corrupts the heap what will happen?<BR></TT><BR><TT>Same as
in worker (for every thread within one process)<BR></TT><BR><TT>---------------------------------------------------------------------<BR></TT><TT>The
official User-To-User support forum of the Apache HTTP Server Project.<BR></TT><TT>See
&lt;URL:<A href="http://httpd.apache.org/userslist.html">http://httpd.apache.org/userslist.html</A>&gt;
for more info.<BR></TT><TT>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org</TT><BR><TT>"
&nbsp; from the digest: users-digest-unsubscribe@httpd.apache.org<BR></TT><TT>For
additional commands, e-mail: users-help@httpd.apache.org</TT><BR><FONT style="FONT-SIZE:
1pt" color=#ffffff>ForwardSourceID:NT0001691E </FONT><pre>=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


</pre>
Mime
View raw message