acs-engine icon indicating copy to clipboard operation
acs-engine copied to clipboard

Svchost & HNS causing high CPU and memory consumption

Open y325A opened this issue 8 years ago • 1 comments

Is this a request for help?: Yes

Is this an ISSUE or FEATURE REQUEST? (choose one): Issue

What version of acs-engine?: 0.14.4

Orchestrator and version Kubernetes 1.9.6 Docker 17.06.2-ee-6

Windows version 1709, 16299

What happened: svchost.exe running with arguments -k netsvcs -p -s hns is using a high amount of memory (879,860 K working set) and frequently spikes to consuming over 50% of the CPU.

What you expected to happen: Process to run with minimal memory and CPU resources. On my local Windows 10 machine (1709, 16299), svchost.exe, with the same arguments has a working set of 280 K memory and is consuming 0% CPU.

How to reproduce it (as minimally and precisely as possible): ACS template below. No further modifications made to OS environment after deployment.

  "apiVersion": "vlabs",
  "properties": {
    "orchestratorProfile": {
      "orchestratorType": "Kubernetes",
	  "orchestratorRelease": "1.9"
    },
    "masterProfile": {
      "count": 1,
      "dnsPrefix": "myprefix",
      "vmSize": "Standard_B2ms"
    },
    "agentPoolProfiles": [
      {
        "name": "windowspool",
        "count": 2,
        "vmSize": "Standard_B2ms",
        "availabilityProfile": "AvailabilitySet",
        "osType": "Windows"
      }
    ],
    "windowsProfile": {
      "adminUsername": "",
      "adminPassword": ""
    },
    "linuxProfile": {
      "adminUsername": "",
      "ssh": {
        "publicKeys": [
          {
            "keyData": ""
          }
        ]
      }
    },
    "servicePrincipalProfile": {
      "clientId": "",
      "secret": ""
    }
  }
}

Additional info After deleting the hns.data file and running HNS scripts found in another issue, CPU and memory returned to normal. This fix only appears to be temporary though, CPU and memory then start to creep up over time - system restarts do not appear to fix issue.

y325A avatar Apr 25 '18 13:04 y325A

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. Note that acs-engine is deprecated--see https://github.com/Azure/aks-engine instead.

stale[bot] avatar Mar 09 '19 13:03 stale[bot]