This loop...
************************
for (i = 0; i < ap_daemons_limit; ++i) {
/* Initialization to satisfy the compiler. It doesn't know
* that ap_threads_per_child is always > 0 */
int status = SERVER_DEAD;
int any_dying_threads = 0;
int idle_thread_addition = 0;
if (i >= ap_max_daemons_limit && free_length == idle_spawn_rate)
break;
for (j = 0; j < ap_threads_per_child; j++) {
ws = &ap_scoreboard_image->servers[i][j];
status = ws->status;
any_dying_threads = any_dying_threads || (status == SERVER_GRACEFUL);
/* We consider a starting server as idle because we started it
* at least a cycle ago, and if it still hasn't finished starting
* then we're just going to swamp things worse by forking more.
* So we hopefully won't need to fork more if we count it.
* This depends on the ordering of SERVER_READY and SERVER_STARTING.
*/
if (status <= SERVER_READY) {
++idle_thread_addition;
}
}
if (any_dying_threads && free_length < idle_spawn_rate) {
free_slots[free_length] = i;
++free_length;
}
if (!any_dying_threads) {
last_non_dead = i;
++total_non_dead;
idle_thread_count += idle_thread_addition;
}
}
ap_max_daemons_limit = last_non_dead + 1;
if (idle_thread_count > max_spare_threads) {
************************
results in idle_thrad_count to stablize at ap_max_daemons_limit * ap_threads_per_child,
which will generally be greater than max_spare_threads which causes the pod write. I
don't
understand you algorithm so I've not figured out how to fix.
Bill
----- Original Message -----
From: "Bill Stoddard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 4:36 PM
Subject: Re: httpd-2.0 tagged (some analysis)
> The SIGTERM is coming from the check_pod code. The parent is writing to pod because
> idle_thread_count is greater than min_spare_threads. None of the values I am seeing
seem
> to be related to what's in my config file.
>
> Bill
>
> ----- Original Message -----
> From: "Cliff Woolley" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 28, 2001 4:03 PM
> Subject: Re: httpd-2.0 tagged
>
>
> > On Thu, 28 Jun 2001, William A. Rowe, Jr. wrote:
> >
> > > > I am having this problem as well. Not sure why. Seems like MPM is eating
> > > > itself.
> > >
> > > On which OS, is this Solaris 8 only?
> >
> > Confirmed as a problem on both RHL7.1 and Solaris 2.6. prefork seems to
> > work fine on both, though.
> >
> > --Cliff
> >
> >
> > --------------------------------------------------------------
> > Cliff Woolley
> > [EMAIL PROTECTED]
> > Charlottesville, VA
> >
> >
> >
> >
>