question

JoshuaTu-8534 avatar image
0 Votes"
JoshuaTu-8534 asked ·

Azure Linux VM hang with 100 CPU and cannot SSH

Hi experts,

I just got a issue with my Ubuntu VM, all starts from few days back I changed the MTU value for the default eth0, then I cannot use "netstat" anymore. Issued a netstat command will never return any output and after few mins the server hang with 99-100% CPU.

Today I tried to fix this issue by myself and somehow the SSH doesn't connect anymore, tried to Restart the VM from Azure portal doesn't work, then I hit the Stop, waited a few mins and Start the VM. The first try with SSH after the reset can be connected, then issued a htop to check the system status, after like 1 min, the screen hang again, and no SSH can be done to this VM. Another reset can do the trick, but will hang again since the netstat application still consumed 100% CPU... Don't know why.

Any help with this issue? Since I don't have any serial console configured for this VM, now with Performance diagnostics option, the Running performance diagnostics job running forever...

Thanks in advance.

azure-virtual-machinesazure-virtual-machines-networking
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are experiencing similar issue with VM that has custom network settings. netstat uses 100% of CPU and VM is completely useless.

0 Votes 0 · ·

That's frustrating no other way to get connect to the VM instance. Right now I am creating a new VM and trying to attach the OS disk to the new VM and hope can find something value to revise the changes.

0 Votes 0 · ·

Send an email to azcommunity@microsoft.com with your subscription id. I will help you to create a one time free support ticket to get the issue resolved.

You can also post the resolution here.

0 Votes 0 · ·

1 Answer

LassiLti-6207 avatar image
0 Votes"
LassiLti-6207 answered ·

Answering to my previous comment, in which I said we were experiencing similar issues with VM that had some custom network settings.

My similar issue was solved when I changed the diagnostics storage account settings. VM worked fine previously, suddenly it started acting like this. Under boot diagnostic settings it said that I had no permissions to access the diagnostic storage account. I went ahead and change settings so that everyone can access it, previously it was restricted to some of the VNets (our vpn etc.). This is weird because VM was working just fine for several weeks and problems started yesterday. No settings had been changed on any of the resources.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Azure diagnostics storage account settings won't impact virtual machine performance. There should be issue with utilization or over CPU % issue and may need to kill unnecessary tasks.

0 Votes 0 · ·