"Free to wrong pool" error in Apache logs under high load

"Free to wrong pool" error in Apache logs under high load

am 09.10.2008 09:07:54 von Scott Tomilson

------=_Part_59338_10343450.1223536074436
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

Apologies if this isn't the right forum, but I am not sure where to turn
to...

I have mod_perl 2.0.4 installed with ActivePerl 5.10.0 under Apache 2.2.9
running on Windows 2003 Server SP1.

I have a very simple PerlResponseHandler hooked in via httpd.conf for a
specific Location. My custom PerlResponseHandler simply prints back "Hello
World" on the HTTP Response. E.g. (simplified obviously):

sub handler {
my $r = shift;
my $s = $r->server;
print "Hello World";
return Apache2::Const::OK;
}
1;

The PerlResponseHandler works fine for most requests, however if I blast a
whole bunch of HTTP requests on multiple threads, etc to Apache, the Web
server stops handling responses. Connections eventually time out with no
response. Apache error.log shows the following:

Free to wrong pool da2750 not 184a6a8.

Which leads me to believe there is something funny going on with multiple
threads, etc.

Where do I start to dive in and figure this out? I don't think I am doing
anything out of the ordinary - it is pretty basic stuff. I am concerned my
version of mod_perl or ActivePerl has some issues around this...

Any tips greatly appreciated!

Thanks,
Scott

------=_Part_59338_10343450.1223536074436
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

Apologies if this isn't the right forum, but I am not sure where to turn to...

I have mod_perl 2.0.4 installed with ActivePerl 5.10.0 under Apache 2.2.9 running on Windows 2003 Server SP1.


I have a very simple PerlResponseHandler hooked in via httpd.conf for a specific Location.  My custom PerlResponseHandler simply prints back "Hello World" on the HTTP Response.  E.g. (simplified obviously):


sub handler {
    my $r = shift;
    my $s = $r->server;
    print "Hello World";
    return Apache2::Const::OK;
}
1;

The PerlResponseHandler works fine for most requests, however if I blast a whole bunch of HTTP requests on multiple threads, etc to Apache, the Web server stops handling responses.  Connections eventually time out with no response.  Apache error.log shows the following:


Free to wrong pool da2750 not 184a6a8.

Which leads me to believe there is something funny going on with multiple threads, etc.

Where do I start to dive in and figure this out?  I don't think I am doing anything out of the ordinary - it is pretty basic stuff.  I am concerned my version of mod_perl or ActivePerl has some issues around this...


Any tips greatly appreciated!

Thanks,
Scott



------=_Part_59338_10343450.1223536074436--

Re: "Free to wrong pool" error in Apache logs under high load

am 09.10.2008 10:03:48 von aw

Scott Tomilson wrote:
> Hi all,
>
> Apologies if this isn't the right forum, but I am not sure where to turn
> to...
>
> I have mod_perl 2.0.4 installed with ActivePerl 5.10.0 under Apache 2.2.9
> running on Windows 2003 Server SP1.
Well, that sounds like you are in the right forum anyway..

>
> I have a very simple PerlResponseHandler
and that even more.. Welcome !

hooked in via httpd.conf for a
> specific Location. My custom PerlResponseHandler simply prints back "Hello
> World" on the HTTP Response. E.g. (simplified obviously):
>
> sub handler {
> my $r = shift;
> my $s = $r->server;

are you using that $s later ? seems useless otherwise

> print "Hello World";

my $count = $r->print "Hello World"; # ?
I'm not sure it makes that much difference, but it would seem more
consistent to use in this environment.
http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#C _print_

> return Apache2::Const::OK;
> }
> 1;
>
> The PerlResponseHandler works fine for most requests, however if I blast a
> whole bunch of HTTP requests on multiple threads, etc to Apache, the Web
> server stops handling responses. Connections eventually time out with no
> response. Apache error.log shows the following:
>
> Free to wrong pool da2750 not 184a6a8.
>
> Which leads me to believe there is something funny going on with multiple
> threads, etc.
>
It definitely sounds that way, but that's way out of my league.
(Might that extra $r->server have something to do with it ?)

Perrin, Fred, Torsten ? help !

Re: "Free to wrong pool" error in Apache logs under high load

am 09.10.2008 11:26:13 von torsten.foertsch

On Thu 09 Oct 2008, Andr=E9 Warnier wrote:
> > The PerlResponseHandler works fine for most requests, however if I
> > blast a whole bunch of HTTP requests on multiple threads, etc to
> > Apache, the Web server stops handling responses. =A0Connections
> > eventually time out with no response. =A0Apache error.log shows the
> > following:
> >
> > Free to wrong pool da2750 not 184a6a8.
> >
> > Which leads me to believe there is something funny going on with
> > multiple threads, etc.
>
> It definitely sounds that way, but that's way out of my league.
> (Might that extra $r->server have something to do with it ?)
>
> Perrin, Fred, Torsten ? help !

Sorry guys, I have read my name at least twice in similar mails lately.=20
But I must say I am under heavy load with my daytime job and this will=20
continue almost certainly till the end of the year. Plus my father had=20
a heart attack a week ago. (3 bypasses but he will survive.) So, I am=20
afraid, I am not going to be much help.

Torsten

=2D-
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Re: "Free to wrong pool" error in Apache logs under high load

am 09.10.2008 17:03:50 von Perrin Harkins

On Thu, Oct 9, 2008 at 3:07 AM, Scott Tomilson wrote:
> Free to wrong pool da2750 not 184a6a8.
>
> Which leads me to believe there is something funny going on with multiple
> threads, etc.

In the past these have typically been threading problems. I don't run
Windows or threads, so I'm probably not going to be much help to you
on this, but if you're not using a build you got from perl.apache.org
I would consider trying that first. Are you loading any other
modules, or just running this one simple test?

- Perrin

Re: "Free to wrong pool" error in Apache logs under high load

am 10.10.2008 02:02:40 von Scott Tomilson

------=_Part_72983_6495141.1223596960178
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks Perrin.

I am running a build of mod_perl I got via perl.apache.org, yes (or I think
probably linked to uwinnipeg?). No other modules than the standard ones,
plus the standard ActivePerl download from ActiveState. We actually tried
the same solution on Solaris and it worked fine. It does seem specific to
Windows itself - or more likely ActivePerl on Windows...

Cheers,
Scott

On Fri, Oct 10, 2008 at 12:03 AM, Perrin Harkins wrote:

> On Thu, Oct 9, 2008 at 3:07 AM, Scott Tomilson
> wrote:
> > Free to wrong pool da2750 not 184a6a8.
> >
> > Which leads me to believe there is something funny going on with multiple
> > threads, etc.
>
> In the past these have typically been threading problems. I don't run
> Windows or threads, so I'm probably not going to be much help to you
> on this, but if you're not using a build you got from perl.apache.org
> I would consider trying that first. Are you loading any other
> modules, or just running this one simple test?
>
> - Perrin
>

------=_Part_72983_6495141.1223596960178
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks Perrin.

I am running a build of mod_perl I got via , yes (or I think probably
linked to uwinnipeg?).  No other modules than the standard ones, plus the
standard ActivePerl download from ActiveState.  We actually tried the same
solution on Solaris and it worked fine.  It does seem specific to Windows itself
- or more likely ActivePerl on Windows...

Cheers,
Scott

On Fri, Oct 10, 2008 at 12:03 AM, Perrin Harkins <> wrote:

On Thu, Oct 9, 2008 at 3:07 AM, Scott Tomilson <> wrote:


> Free to wrong pool da2750 not 184a6a8.

>

> Which leads me to believe there is something funny going on with multiple

> threads, etc.



In the past these have typically been threading problems.  I don't run

Windows or threads, so I'm probably not going to be much help to you

on this, but if you're not using a build you got from

I would consider trying that first.  Are you loading any other

modules, or just running this one simple test?



- Perrin




------=_Part_72983_6495141.1223596960178--

Re: "Free to wrong pool" error in Apache logs under high load

am 10.10.2008 09:54:48 von torsten.foertsch

On Fri 10 Oct 2008, Scott Tomilson wrote:
> I am running a build of mod_perl I got via perl.apache.org, yes (or I
> think probably linked to uwinnipeg?). =A0No other modules than the
> standard ones, plus the standard ActivePerl download from
> ActiveState. =A0We actually tried the same solution on Solaris and it
> worked fine. =A0It does seem specific to Windows itself - or more
> likely ActivePerl on Windows...

The windows MPM is multithreaded, the prefork MPM that you have probably=20
used on Solaris is not. That makes a difference.

Torsten

=2D-
Need professional mod_perl support?
Just hire me: torsten.foertsch@gmx.net

Re: "Free to wrong pool" error in Apache logs under high load

am 10.10.2008 10:04:22 von Scott Tomilson

------=_Part_75561_25373438.1223625862525
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Actually - we compiled Apache with MPM=worker on Solaris...

Scott


On Fri, Oct 10, 2008 at 4:54 PM, Torsten Foertsch
wrote:

> On Fri 10 Oct 2008, Scott Tomilson wrote:
> > I am running a build of mod_perl I got via perl.apache.org, yes (or I
> > think probably linked to uwinnipeg?). No other modules than the
> > standard ones, plus the standard ActivePerl download from
> > ActiveState. We actually tried the same solution on Solaris and it
> > worked fine. It does seem specific to Windows itself - or more
> > likely ActivePerl on Windows...
>
> The windows MPM is multithreaded, the prefork MPM that you have probably
> used on Solaris is not. That makes a difference.
>
> Torsten
>
> --
> Need professional mod_perl support?
> Just hire me: torsten.foertsch@gmx.net
>

------=_Part_75561_25373438.1223625862525
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Actually - we compiled Apache with MPM=worker on Solaris...

Scott


On Fri, Oct 10, 2008 at 4:54 PM, Torsten Foertsch <> wrote:

On Fri 10 Oct 2008, Scott Tomilson wrote:

> I am running a build of mod_perl I got via , yes (or I

> think probably linked to uwinnipeg?).  No other modules than the

> standard ones, plus the standard ActivePerl download from

> ActiveState.  We actually tried the same solution on Solaris and it

> worked fine.  It does seem specific to Windows itself - or more

> likely ActivePerl on Windows...



The windows MPM is multithreaded, the prefork MPM that you have probably

used on Solaris is not. That makes a difference.



Torsten



--

Need professional mod_perl support?

Just hire me:




------=_Part_75561_25373438.1223625862525--

Re: "Free to wrong pool" error in Apache logs under high load

am 10.10.2008 10:06:26 von Scott Tomilson

------=_Part_75571_28650789.1223625986380
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Sorry - I mean MPM=worker (multi thread)

Cheers,
Scott

On Fri, Oct 10, 2008 at 5:04 PM, Scott Tomilson wrote:

> Actually - we compiled Apache with MPM=worker on Solaris...
>
> Scott
>
>
>
> On Fri, Oct 10, 2008 at 4:54 PM, Torsten Foertsch <
> torsten.foertsch@gmx.net> wrote:
>
>> On Fri 10 Oct 2008, Scott Tomilson wrote:
>> > I am running a build of mod_perl I got via perl.apache.org, yes (or I
>> > think probably linked to uwinnipeg?). No other modules than the
>> > standard ones, plus the standard ActivePerl download from
>> > ActiveState. We actually tried the same solution on Solaris and it
>> > worked fine. It does seem specific to Windows itself - or more
>> > likely ActivePerl on Windows...
>>
>> The windows MPM is multithreaded, the prefork MPM that you have probably
>> used on Solaris is not. That makes a difference.
>>
>> Torsten
>>
>> --
>> Need professional mod_perl support?
>> Just hire me: torsten.foertsch@gmx.net
>>
>
>

------=_Part_75571_28650789.1223625986380
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Sorry - I mean MPM=worker (multi thread)

Cheers,
Scott

On Fri, Oct 10, 2008 at 5:04 PM, Scott Tomilson <> wrote:

Actually - we compiled Apache with MPM=worker on Solaris...


Scott



On Fri, Oct 10, 2008 at 4:54 PM, Torsten Foertsch <> wrote:


On Fri 10 Oct 2008, Scott Tomilson wrote:

> I am running a build of mod_perl I got via , yes (or I

> think probably linked to uwinnipeg?).  No other modules than the

> standard ones, plus the standard ActivePerl download from

> ActiveState.  We actually tried the same solution on Solaris and it

> worked fine.  It does seem specific to Windows itself - or more

> likely ActivePerl on Windows...



The windows MPM is multithreaded, the prefork MPM that you have probably

used on Solaris is not. That makes a difference.



Torsten



--

Need professional mod_perl support?

Just hire me:






------=_Part_75571_28650789.1223625986380--