NOTE: It is highly recommended to test this settings in test environment before applying it to production servers. Caution: The heap memory can be updated manually in CS JVMThreshold.bat file only after understanding how it works
CS_JVMHeapThreshold.bat.gz
Configuring the memory related settings of a virtual machine
MemoryConfiguration.java
Input & Steps:: 1) CPU(numCPUs) - Provide num of cpus count,it never exceed host supported num of cpus 2) RAM(ramMB) - Provide ram value in MB, it never exceed host max alloted memory 3) HardDisk(diskCapacityinKB) - Provide harddisk value in KB, it never exceeds harddisk datastore freeDiskSpace. 4) harddiskName - Eg- "Hard disk 2" or "Hard disk 3" Note1:: It is recommended to assign for harddiskName should start from "Hard disk 2",because "Hard disk 1" contains the OS data and sometimes contains snapshots, will not allowed to extend disk. Note2:: For PowerON VM- Before modify RAM/CPU it is mandatory to enable the VM Memory Hot Add & CPU Hot Plug feature and also VM OS supports
ModifyVM_RAM_CPU_HardDisk.txt
Create an exhaustive VM with the following configuration - 3 disks, 2 nics, 2 vcpu, 2 GB, memory, boot=BIOS, 1 cdrom, 1 serial port, 1 parallel port, 1 floppy, boot device=[CDROM, DISK, ETHERNET])
CreateExhaustiveVM.java
//::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/ //:: # Author: Vikas Shitole //:: # Product/Feature: vCenter Server/Storage //:: # Reference: http://vthinkbeyondvm.com/how-to-quickly-get-vsphere-cluster-resource-usage-cpu-mem-storage-using-api-cool-api-in-vsphere-6-0/ //:: # Description: Reporting memory, cpu and storage usage acorss all the clusters in vCenter server. //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/ #vThinkBeyondVM.com #vSpherejavasdk #vSphereManagementSDK #Java #MIT #vSphere
GetClusterResourceUsage.java