Memory and heap memory on vCenter

How to manage memory usage into vmware vCenter server and eventually add memory to the virtual machine vcenter

If you need to change heap memory on vCenter server you need to follow this procedure

  1. Connect using SSH to your vcenter server
  2. Enter shell
  3. run command to check heap memory
Command> shell
Shell access is granted to root
root@ostrichvc [ ~ ]# cloudvm-ram-size -l
OS                   =     3074
vmdird               =       28
vmware-netdumper     =       20
vmware-rbd-watchdog  =      200
vmware-imagebuilder  =       50
applmgmt             =      223
vmware-envoy         =       92
vmware-rhttpproxy    =       25
vmafdd               =       28
vmware-vsan-health   =      102
vsphere-ui           =     1114
vmware-vapi-endpoint =      415
vmware-cis-license   =      205
vmware-eam           =      288
lookupsvc            =      155
vmware-vpxd-svcs     =     1199
vmware-perfcharts    =      534
vmware-sca           =      228
vmware-sps           =      872
vmware-stsd          =      688
vmware-content-library =      527
vmcad                =      224
vmware-vpostgres     =     1177
vmware-postgres-archiver =        5
vmware-vdtc          =       35
vmware-vpxd          =     3732
vmware-vsm           =      374
vmonapi              =       15
vmware-vmon          =        5
vmware-updatemgr     =      453
vmware-statsmonitor  =       100
vcha                 =       46
vmware-hvc           =      120
vmware-trustmanagement =      133
vmware-certificatemanagement =      274
vmware-certificateauthority =      100
vmware-pod           =      200
observability        =       80
observability-vapi   =      123
vmware-infraprofile  =      217
vmware-analytics     =      427
vmware-topologysvc   =      122
wcp                  =      359
vlcm                 =      156
vstats               =       77
vtsdb                =      406
TOTAL(MB)            =    19027
root@ostrichvc [ ~ ]# 
  1. Identify the service to which you want to allocate more memory (tipically vsphere-ui) and assign new heap memory value
  2. restart services
  3. check new heap memory value
root@ostrichvc [ ~ ]# cloudvm-ram-size -C 2048 vsphere-ui
root@ostrichvc [ ~ ]# service-control --stop vsphere-ui
root@ostrichvc [ ~ ]# service-control --start vsphere-ui
root@ostrichvc [ ~ ]# cloudvm-ram-size -l
OS                   =     3074
vmdird               =       28
vmware-netdumper     =       20
vmware-rbd-watchdog  =      100
vmware-imagebuilder  =       50
applmgmt             =      223
vmware-envoy         =       92
vmware-rhttpproxy    =       25
vmafdd               =       28
vmware-vsan-health   =      102
vsphere-ui           =     2304
vmware-vapi-endpoint =      415
vmware-cis-license   =      205
vmware-eam           =      188
lookupsvc            =      155
vmware-vpxd-svcs     =     1099
vmware-perfcharts    =      534
vmware-sca           =      128
vmware-sps           =      872
vmware-stsd          =      688
vmware-content-library =      527
vmcad                =      124
vmware-vpostgres     =     1177
vmware-postgres-archiver =        5
vmware-vdtc          =       35
vmware-vpxd          =     3432
vmware-vsm           =      174
vmonapi              =       15
vmware-vmon          =        5
vmware-updatemgr     =      453
vmware-statsmonitor  =       10
vcha                 =       46
vmware-hvc           =      120
vmware-trustmanagement =      133
vmware-certificatemanagement =      274
vmware-certificateauthority =      100
vmware-pod           =      200
observability        =       80
observability-vapi   =      123
vmware-infraprofile  =      217
vmware-analytics     =      327
vmware-topologysvc   =      122
wcp                  =      359
vlcm                 =      156
vstats               =       77
vtsdb                =      406
TOTAL(MB)            =    19027
root@ostrichvc [ ~ ]# 

Some consideration

As you can see, total memory remains the same! So it means that if you assign more memory to a service, memory for another service will be automatically reduced.

If you want to avoid this behaviour you need to assign extra memory to the vCenter VM into vsphere

What is heap memory

In short, heap memory is a portion of RAM memory allocated for a specific service in the server

External links

Here you have the official documentation

Manually increasing the heap memory on vCenter Server components in vCenter 6.x / 7.x (broadcom.com)