Re: Strange memory leak in windows service (pool nonpaged bytes)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Adam Clauss" <aclauss@xxxxxxxx> wrote in message news:gsydnQLjBLqKXJnVnZ2dnUVZ_vCknZ2d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
We have a Windows Service written in C# that seems to be the center of a periodic system failure.

The following error gets logged to the system event log:
EVENT_SRV_NO_NONPAGED_POOL
(event ID: 2019).

I turned on performance monitor and started keeping an eye on our process (monitored pool nonpaged bytes for both the entire system and our process).

What I saw initially was no problems, a nice relatively straight line for both (minor ups and downs, but that was expected). However, at some point (we didn't see what initiated this) the values for both our process and the system skyrocketed, both completely pegged off the chart. Unfortunately, we caught it too late to know whether this was a sudden spike, or a gradual growth - I can say that it is not a constant growth, it was fine during the day while I was monitoring it. I now have the actual counter log turned on for those values so I can see exactly what type of increase it was.

In any case, I've never run into anything like this before and am not sure where to even start... google'ing the event log error returned a whole one result, that gave me a great warm, fuzzy feeling.

Our process is basically a "cache" of data, it initiates connections to various other processes from which it retreives data from. Clients also connect to our process in order to retrieve this cached data from us. Commands from clients are also passed via this process and on to the various processes we connect to (and command responses returned the opposite direction). All of these connections are TCP, and there are probably anywhere from 20-50 of these connections open at a time.

Any thoughts on what I should be looking for??

-Adam



The "Non paged pool" refers to the non paged kernel memory pool. Allocation from this pool can only de done by device drivers, to troubleshooting such kind of leaks you'll have to use the Memory Pool Monitor (poolmon.exe).
Please search the KB for "How to use memory pool monitor" for more detailed info

Willy.



.



Relevant Pages

  • Strange memory leak in windows service (pool nonpaged bytes)
    ... The following error gets logged to the system event log: ... I turned on performance monitor and started keeping an eye on our process ... Our process is basically a "cache" of data, it initiates connections to ... Commands from clients are also passed via this process and on to the various ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Strange memory leak in windows service (pool nonpaged bytes)
    ... The following error gets logged to the system event log: ... Our process is basically a "cache" of data, it initiates connections to ... The "Non paged pool" refers to the non paged kernel memory pool. ... Monitor. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Strange memory leak in windows service (pool nonpaged bytes)
    ... any connections to how your TCP/IP stack is being handled by garbage ... The following error gets logged to the system event log: ... I turned on performance monitor and started keeping an eye on our process ... Commands from clients are also passed via this process and on to the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Strange memory leak in windows service (pool nonpaged bytes)
    ... Have you though that this maybe is connected to how you handle the TCP/IP ... connections to how your TCP/IP stack is being handled by garbage collector ... The following error gets logged to the system event log: ... I turned on performance monitor and started keeping an eye on our process ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Presario 2100 Motherboard Testing
    ... without shattered monitor, without DVD drive, etc. with no effect. ... instead such as an external VGA monitor, USB keyboard and mouse? ... The motherboard appears to be in good shape - no visible ... hundreds of traces or broken solder connections. ...
    (comp.sys.laptops)