The cloudvm-ram-size utility is an utility of VC/PSC that given the total available memory divides and distributes said memory between individual processes that make up VC/PSC. Therefore, if cloudvm-ram-size is used to increase a memory size of one process, it will automatically decrease the size of all other processes because the total memory available is static.
Therefore, it is important to increase the total memory (RAM) of VC/PCS. By increasing total memory of VM that is hosting VC/PCS, and then increasing a memory footprint of a single process, results in not starving other processes of their memory, and does not introduce more instability into the system due other processes starving.
Follow below best practices for increasing the heap size of the process:
- SSH into the VC/PSC as a root user
- Execute the command: "cloudvm-ram-size -l". This will list the current memory distribute and division of memory between each service. Take note of these allocations
- Increase the heap size by executing the command: "cloudvm-ram-size -C 1024 vmware-stsd"
- Execute "cloudvm-ram-size -l" again and compare the result to make sure no other service has been adjusted down.
- If other services were adjusted down too much (more than 5%), then increase the total available memory (RAM) of vCenter Server
- Restart the VM and execute "cloudvm-ram-size -C 1024 vmware-stsd" again so that utility will recalculate memory allocations based on the new total memory
- Check "cloudvm-ram-size -l" allocation again, and compare the distributions to the originals.
The goal is to make sure that cloudvm-ram-size has enough total memory to work with and that it adjusts vmware-stsd up without compromising other services and adjusting anything else down.