DNS Service in Active Directory Consuming High Memory and Crashing on Azure VM

Saurabh Sutone 0 Reputation points
2024-07-09T09:29:35.95+00:00

Hello Experts,

I'm experiencing a persistent issue with the DNS service in Active Directory on an Azure VM. Despite scaling the VM from 16 GB RAM to 32 GB, the DNS service continues to consume high memory and eventually crashes.

Here are the details:

Environment:

VM Configuration: Standard D8s v3 (8 vcpus, 32 GiB memory) [Azure VM with 32 GB RAM ]

Operating System: Windows (Windows Server 2022 Standard)

Active Directory and DNS Role: Running on the same VM

Issue Description:

The DNS service consumes high memory, leading to performance degradation.

The service eventually crashes, causing DNS resolution failures.

Scaling the VM from 16 GB to 32 GB RAM did not resolve the issue.

Troubleshooting Steps Taken:

Checked DNS logs and Event Viewer for errors or warnings.

Ensured the system is up-to-date with the latest patches and updates.

Configured DNS forwarders to offload external queries.

Adjusted DNS cache settings and reduced logging levels.

Reviewed DNS zones and resource records for unnecessary entries.

Monitored performance using PerfMon and Sysinternals tools.

Scanned for malware and unauthorized changes.

Verified that the VM size is appropriate for the workload.

  • Ensured disk I/O is not a bottleneck.
  • Despite these efforts, the issue persists.

I am looking for expert advice on the following:

Potential causes for high memory consumption by the DNS service.

Best practices for optimizing DNS configuration in Active Directory.

Any specific tools or methods to diagnose and resolve memory leaks in the DNS service.

Recommendations for managing DNS services in a large environment on Azure.

I appreciate any guidance or suggestions you can provide.

Thank you!

Saurabh ✌

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,562 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,607 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,221 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nikhil Duserla 1,060 Reputation points Microsoft Vendor
    2024-07-10T07:08:42.48+00:00

    Hi Saurabh Sutone ,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    We understand from your query that you are experiencing an issue with the DNS service in Active Directory consuming high memory and crashing on an Azure VM.

    This issue might be caused by a memory leak in the DNS server process.

    The DNS cache size could be too large, leading to high memory consumption. You can try resolving this by adjusting the MaxCacheSize registry value.

    If you are still facing issue, I would suggest filing a support case to investigate this matter further. The support team will be able to examine and assist with resolving the issue.

    0 comments No comments

  2. Jing Zhou 5,135 Reputation points Microsoft Vendor
    2024-07-12T09:33:47.5033333+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    This issue may caused by Azure VM memory pressure.

    It's recommended to use PerfInsights , which can provide an Azure VM best practices diagnosis in a user-friendly report. With this tool you can capture a trace with details inside for troubleshooting.

    How to download: https://www.microsoft.com/en-us/download/details.aspx?id=54915

     

    Best regards,

    Jill Zhou

     


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments