httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PMilan...@nypl.org
Subject RE: [users@httpd] Apache stops listening
Date Mon, 31 Oct 2005 14:00:41 GMT
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"\@MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>


<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
About once a week or so Apache just stops listening and we have to restart <br>
the Apache service. I had found in one of my php scripts a problem with <br>
some database calls. The result set was being populated over and over <br>
again in a loop that may occur several thousand times. I added an unset to <br>
the bottom of the loop and we went from having this problem on almost a <br>
daily basis to about once a week. I just went through my php code with a <br>
fine tooth comb and found one other spot that this may be occuring and <br>
changed it. I am hoping this will fix our problem. Has anyone seen this <br>
problem before? Am I on the right track? Also, I am considering setting <br>
up a scheduled event to restart Apache at 2AM every morning. Do you think <br>
this might help? <br>
<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><i><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy;
font-weight:bold;font-style:italic'>[Pete Says:] How do you define &#8216;stops
listening&#8217;, and do you mean &#8216;stops responding&#8217;? If you note
problems with
database calls, then that may be where all of your problems lie. Perhaps it is
timing out threads, consuming all of them, and denying requests as a result. Are
you sure your code is exiting properly? I would continue checking for that kind
of thing. You do not mention CPU use either. When apache does not respond, does
load go up on the cpu(s)?<o:p></o:p></span></font></i></b></p>

</div>

</div>

</body>

</html>


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


Mime
View raw message