Request for Assistance: Azure VM Performance & System.OutOfMemoryException Issues

Youc 20 Reputation points
2025-03-12T03:30:20.58+00:00

Dear Azure Support Team,

I am experiencing critical performance issues on my Azure Virtual Machine, which is affecting my operations. I would like to request assistance in diagnosing and resolving the following problems:

Issue Details

  • Error Encountered: System.OutOfMemoryException
  • Resource Affected: Virtual Machine (Region: AustraliaSouthEast)
  • Diagnostics Attempted:
    1. Ran Azure Performance Diagnostics, but it is not installed on my VM.
      1. The diagnostic tool did not detect any issues, but the error persists.
        1. The VM is part of an Availability Set, limiting my ability to resize or migrate to a different hardware cluster.
          1. Need confirmation on whether the issue is due to hardware constraints, memory exhaustion, or VM SKU limitations.

Troubleshooting Steps Taken

  • Checked VM logs for memory usage but need further insights.
  • Reviewed Azure documentation and recommendations but require further guidance.
  • Attempted diagnostics via PerfInsights, but it was not installed on my VM.

Request for Support

I would appreciate assistance with the following:

  1. Guidance on installing and running Azure Performance Diagnostics (PerfInsights) for further analysis.
  2. Evaluation of memory usage on my VM to determine if a resize or optimization is required.
  3. Recommendations on alternative VM SKUs or configurations that may resolve memory issues.
  4. Steps to migrate the VM to a different cluster or availability set to unlock more VM size options.

I have attached screenshots of the diagnostics results for your reference. Please let me know if you need further details to expedite this request.

Thank you for your support. I look forward to your prompt response.

Best Regards,
Kate Ttian

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,016 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mounika Reddy Anumandla 6,570 Reputation points Microsoft External Staff Moderator
    2025-03-12T10:16:39.78+00:00

    Hi Youc,

    I understand that you need help with diagnosing and resolving the System.OutOfMemoryException on your Azure VM youcvmuat (AustraliaSouthEast):

    1. Guidance on installing and running Azure Performance Diagnostics (PerfInsights) for further analysis. You can run PerfInsights on a virtual machine by installing Azure Performance Diagnostics VM Extension. You can also run it as a standalone tool. Run PerfInsights in standalone mode: The detailed steps re given in the document https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/how-to-use-perfinsights#how-do-i-run-perfinsights
    2. Evaluation of memory usage on my VM to determine if a resize or optimization is required. For Windows VMs:
      • Using Task Manager:
      • Press Ctrl + Shift + Esc to open Task Manager.
      • Navigate to the Performance tab and select Memory to view usage statistics.
      For Linux VMs: free -h, This command displays total, used, and free memory.
    3. Recommendations on alternative VM SKUs or configurations that may resolve memory issues. If your VM is part of an Availability Set, all VMs within the set must be deallocated before resizing to ensure the new size is supported by the underlying hardware cluster https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/virtual-machines-availability-set-supportability
    4. Direct migration of a VM to a different Availability Set is not supported. A request to resize a VM or add one to an existing availability set must be made at the original cluster that hosts the existing availability set. The cluster might not support the requested VM size or currently have sufficient capacity. Partial deallocation means that you stopped (deallocated) one or more, but not all, VMs in an availability set. When you deallocate a VM, the associated resources are released. Starting VMs in a partially deallocated availability set is the same as adding VMs to an existing availability set. Therefore, the allocation request must be made at the original cluster hosting the existing availability set that might not have sufficient capacity.
      https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/virtual-machines-availability-set-supportability https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/allocation-failure

    Hope this helps!

    Let me know for further queries!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.