Strange memory leak in windows service (pool nonpaged bytes)



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


.



Relevant Pages

  • Re: Strange memory leak in windows service (pool nonpaged bytes)
    ... 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. ... 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. ...
    (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: Issue with user profile folders and outlook
    ... I have received the Event Log and had a look at it. ... the SID should be resolved to the account name. ... Try to log onto the client with that account and check how it works. ... Connections, ...
    (microsoft.public.windows.server.sbs)