Manually increase the heap memory
search cancel

Manually increase the heap memory

book

Article ID: 320871

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Performance issues in components such as the Inventory Service and vSphere web-client.

  • Seeing alarm alarm.VsphereUiHealthAlarm on Folder Datacenters

  • vsphere_client_virgo.log show similar info:

    [INFO ] health-status-85 c.v.v.v.cm.HealthStatusRequestHandler$HealthStatusCollectorTask   Determined health status 'YELLOW: [(vmodl.LocalizableMessage) {
       dynamicType = null,
       dynamicProperty = null,
       key = webclient.memory.lowheap,
       arg = null,
       message = The server is running low on heap memory (>90% utilized.)
    }]' in 0 ms

Environment

  • 7.x, 8.x, 8.0U3

Cause

Heap memory of vCenter components gets exhausted.

Resolution

Note: Service names may vary between vCenter Server versions 7.x and 8.x. As such, see Stopping, Starting or Restarting VMware vCenter Server Appliance 6.x & above services (2109887) below for service names and how to stop and start services in vCenter Server Appliance and Windows Center Server.

Important: Updates of vCenter server may revert these changes, so document accordingly and as needed to repeat this process.

vCenter Server Appliance:

  1. Use SSH to connect to the VCSA as root
  2. Enter the Bash shell by typing shell and pressing Enter
  3. Run the following command to output memory assigned to each of the services:
    cloudvm-ram-size -l
  1. Increase the amount of memory assigned to the services by running the following command, using the vCenter HTML5 web client (or "vsphere-ui"), as an example:

cloudvm-ram-size -C #### vsphere-ui

Note: #### should be replaced with the desired amount of memory in MB.
For example, this command would increase the memory of the vsphere-ui service from 853 MB to 2048 MB.

cloudvm-ram-size -C 2048 vsphere-ui

There is no "one size fits all" memory value to set in this scenario, however - as a guide, double the size of currently assigned memory of the service that has an issue. This may need to be repeated.
  1. Restart the service that has been altered, in this example - vsphere-ui:
service-control --stop vsphere-ui;service-control --start vsphere-ui;
  1. Confirm that the service has now been allocated the increased memory by using this command:

    cloudvm-ram-size -l

Additional Information