Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Memory leak when an application pings lots of IP addresses in Windows Server 2008


View products that this article applies to.

Symptoms

Consider the following scenario: On a computer that is running Windows Server 2008, you are running an application that pings lots of IP addresses (for example, 65,000 IP addresses) every 30 minutes by using Internet Control Message Protocol (ICMP) to check whether the client is alive. 

In this scenario, a memory leak occurs when the IP addresses are pinging one after the other. The memory leak may bring down the server, and the end-users cannot connect to the server. 

↑ Back to the top


Cause

This issue occurs because the allocated nonpaged pool memory that has the AIeE tag increases when the application tries to create and then close lots of RAW sockets in a short time by using the WinSock API. 

↑ Back to the top


Workaround

To work around this issue, use the ICMP API for pinging instead of RAW sockets. 

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2712604
Revision : 1
Created on : 1/7/2017
Published on : 5/23/2012
Exists online : False
Views : 237