Manually increasing the heap memory on vCenter Server components in vCenter 6.x / 7.x
search cancel

Manually increasing the heap memory on vCenter Server components in vCenter 6.x / 7.x

book

Article ID: 320871

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides steps to increase the heap memory of individual vCenter Server components to resolve performance issues in components such as the vSphere Web Client.

Symptoms:
  • Performance issues in components such as the Inventory Service and Web-client
  • Services such as the vsphere-client's status changes from green to yellow continually


Environment

VMware vCenter Server Appliance 6.5.x
VMware vCenter Server 6.5.x
VMware vCenter Server Appliance 6.0.x
VMware vCenter Server 8.0.x
VMware vCenter Server 6.0.x
VMware vCenter Server 6.7.x
VMware vCenter Server 7.0.x
VMware vCenter Server Appliance 6.7.x

Resolution

Depending on whether you are using an vCenter Server Appliance or a Windows vCenter Server, please see the relevant steps below.

Note: Service names may vary between vCenter Server versions 6.x and 7.x, as such please see Stopping, Starting or Restarting VMware vCenter Server Appliance 6.x & above services (2109887) for service names and on how to stop and start services in Windows Center Server and vCenter Server Appliance. Updates of vCenter server may revert these changes, so document accordingly and as needed to repeat that process.

vCenter Server Appliance:

  1. Use SSH to connect to the VCSA and enter the Bash shell
  2. Run the following command to output memory assigned to each of the services:
cloudvm-ram-size -l
 
image.png
  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 XXXX vsphere-ui

Note:
XXXX should be replaced by the desired amount of memory in MB.
For example, cloudvm-ram-size -C 2048 vsphere-ui would increase the memory of the vsphere-ui service from 768 MB to 2048 MB.

Where there is no one size fits all memory value to set in this scenario, 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 using the command:
cloudvm-ram-size -l



Windows vCenter Server:

  1. Open a command prompt to the following location:
C:\ProgramFiles\VMware\vCenter Server\visl-integration\usr\sbin\
 
  1. Run the following command to output the services and heap memory assigned to them:
cloudvm-ram-size.bat -l
 
  1. Run the following command to modify the service memory using the vCenter HTML5 web client (or "vsphere-ui"), as an example:
cloudvm-ram-size.bat -C XXXX vsphere-ui
 
Note: XXXX should be replaced by the desired amount of memory in MB. For example, cloudvm-ram-size.bat -C 2048 vsphere-ui would increase the memory of the vsphere-ui service from 791 MB to 2048 MB.
 
  1. Restart the service that has been altered using command prompt or via Services in Windows
  2. Confirm that the service has now been allocated the increased memory using the command:
cloudvm-ram-size.bat -l


Additional Information

vCenter 6.x で vCenter Server コンポーネントのヒープ メモリを手動で増やす
VMware Skyline Health Diagnostics for vSphere - FAQ