You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nick Knack <ni...@gmail.com> on 2008/06/14 10:39:40 UTC

[users@httpd] Apache 2.2.8 / Win2003 - Non Paged Pool blows up

Hi,

We've been trying to diagnose an issue showing up for the past several
months on our Windows Server 2003 machines (both x32 and x64) running Apache
2.2.8 (with SSL). Just using it for PHP scripts - PHProxy and the like.


1. After some period of time (every 2 hours yesterday for example), the Non
Paged Pool usage of Apache surges to (on x64) 18TB or thereabouts -
basically close to the max positive signed 64 bit integer
(18446744073709551616).

2. Either it then fluctuates between that value and a low value, or it stays
at the value. Obviously, no other network application can continue working
once that happens (requires NonPagedPool to create a socket).


Any idea why this might be happening, or what we can do to diagnose the
issue? We've looked up the httpd logs, nothing specifically erroneous. High
load seems to result in quicker crashes.

Thanks for any responses/suggestions. We aim at getting sufficient info to
file a bug report.


-- 
Nick the Knack

Re: [users@httpd] Apache 2.2.8 / Win2003 - Non Paged Pool blows up

Posted by André Warnier <aw...@ice-sa.com>.

Nick Knack wrote:
> Hi,
> 
> 
> 1. After some period of time (every 2 hours yesterday for example), the Non
> Paged Pool usage of Apache surges to (on x64) 18TB or thereabouts -

Maybe you'd like to try :

Setting MaxRequestsPerThread to a non-zero limit has two beneficial effects:
     * it limits the amount of memory that a thread can consume by 
(accidental) memory leakage;

I honestly don't really know what Non Paged Pool is, nor if memory used 
by threads comes from there, but it might be worth a try.

---------------------------------------------------------------------
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


Re: [users@httpd] Apache 2.2.8 / Win2003 - Non Paged Pool blows up

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Nick Knack wrote:
> 
> Thanks for any responses/suggestions. We aim at getting sufficient info 
> to file a bug report.

First off you didn't mention which module you used to connect to httpd,
would look there first.  Also, pick up 2.2.9 and see if these patches
that are in that release don't solve your runaway memory issue?

http://svn.apache.org/viewvc?view=rev&revision=645436
http://svn.apache.org/viewvc?view=rev&revision=585357

---------------------------------------------------------------------
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


Re: [users@httpd] Apache 2.2.8 / Win2003 - Non Paged Pool blows up

Posted by Nick Knack <ni...@gmail.com>.
Thanks to William/Andre for replying.

Eric, that patch did the trick - seems to have fixed the issue, no crashes
since the patch was installed.

Thanks!

On Sat, Jun 14, 2008 at 4:45 PM, Eric Covener <co...@gmail.com> wrote:

> On Sat, Jun 14, 2008 at 4:39 AM, Nick Knack <ni...@gmail.com>
> wrote:
> > Hi,
> >
> > We've been trying to diagnose an issue showing up for the past several
> > months on our Windows Server 2003 machines (both x32 and x64) running
> Apache
> > 2.2.8 (with SSL). Just using it for PHP scripts - PHProxy and the like.
> >
> >
> > 1. After some period of time (every 2 hours yesterday for example), the
> Non
> > Paged Pool usage of Apache surges to (on x64) 18TB or thereabouts -
> > basically close to the max positive signed 64 bit integer
> > (18446744073709551616).
> >
>
> Do you have some reason to expect this is anything but Windows
> mis-reporting the non-paged memory usage?  Doesn't non-paged memory
> usage _total_ have to be less than physical memory on the system?
>
> I don't know if there's some way this, or just a similar problem,
> might be applicable to apache:
>
> http://support.microsoft.com/kb/936655
>
> This problem occurs because the Afd.sys file may charge the quota to
> one Citrix process after the Citrix process allocates the nonpaged
> pool memory. Then, the quota is returned to another Citrix process
> after the Citrix process frees the nonpaged pool memory. When the
> nonpaged pool memory is allocated and then freed repeatedly, the quota
> that is allocated for the second time is a negative number. On a
> 32-bit system, this negative number is interpreted as a second Citrix
> process that uses 4 GB of nonpaged pool memory.
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Nick the Knack

Re: [users@httpd] Apache 2.2.8 / Win2003 - Non Paged Pool blows up

Posted by Eric Covener <co...@gmail.com>.
On Sat, Jun 14, 2008 at 4:39 AM, Nick Knack <ni...@gmail.com> wrote:
> Hi,
>
> We've been trying to diagnose an issue showing up for the past several
> months on our Windows Server 2003 machines (both x32 and x64) running Apache
> 2.2.8 (with SSL). Just using it for PHP scripts - PHProxy and the like.
>
>
> 1. After some period of time (every 2 hours yesterday for example), the Non
> Paged Pool usage of Apache surges to (on x64) 18TB or thereabouts -
> basically close to the max positive signed 64 bit integer
> (18446744073709551616).
>

Do you have some reason to expect this is anything but Windows
mis-reporting the non-paged memory usage?  Doesn't non-paged memory
usage _total_ have to be less than physical memory on the system?

I don't know if there's some way this, or just a similar problem,
might be applicable to apache:

http://support.microsoft.com/kb/936655

This problem occurs because the Afd.sys file may charge the quota to
one Citrix process after the Citrix process allocates the nonpaged
pool memory. Then, the quota is returned to another Citrix process
after the Citrix process frees the nonpaged pool memory. When the
nonpaged pool memory is allocated and then freed repeatedly, the quota
that is allocated for the second time is a negative number. On a
32-bit system, this negative number is interpreted as a second Citrix
process that uses 4 GB of nonpaged pool memory.
-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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