I didn't find much info out there when Goggling so I'm adding what I found here. I searched for:
vCenter server high memory utilization
VMware vCenter java high memory
VirtualCenter Server out of memory
VMWare vCenter Inventory Service memory
We upgraded our vCenter server to 5.1.0-947939, after which the server (with 4GB of RAM) was starving for memory. There were 5 instances of JAVA.EXE, each eating up a lot of RAM. The worst single instance of JAVA was using 1.5GB of RAM, the next one was nearly at 1GB.
In my searches I eventually found someone that was able to tweak the Java Heap Size default. There are many vCenter Server services that use Tomcat and Java, when you add them all up... ouch, it consumes all the RAM and brings the server to a grind.
What I found:
The main culprit was the "VMWare vCenter Inventory Service." This had the 1.5GB Java process. I found you could actually shut it down and the vSphere Client would still work. I won't pretend to know exactly what this service is for; but it seems to store the client INVENTORY data in a memory cache. I have only about 30 VMs and 3 hosts, hardly needing 1.5GB of cached info I would guess.
In addition to the Inventory Service, I found you could shut down the "VMware VirtualCenter Managment Webservices" also; however, this will cause an IE type error message in the vSphere Client if you try to look at OVERVIEW on the PERFORMANCE tab.
If you don't want to use the web-client, you can shut down "VMware vSphere Web Client" for a big chunk of memory also. Then if you do that, you also don't need "VMwareVCMSDS" which provides LDAP services (but it doesn't use much memory.) If you want to use the Web Client, you do need the LDAP service running though.
The other services are as such:
- VMware Log Browser: not needed if you're not using the web client. Not a huge hog though.
- VMware USB Arbitration Service: not a huge hog.
- VMware vCenter Orchestrator Configuration: I don't use this, I have it disabled so I don't know what memory impact it has.
- VMware VirtualCenter Server: The main service - you need this!
- vCenter Single Sign On - does eat up some memory, but is nice to have.
- VMware vSphere Profile-Driven Storage Service - I'm not really sure what this does to be honest. I turned it off to no noticable issues.
THE FIX
If you want the vCenter Inventory Service, and the Web Client running, there is a way to trim down the memory that JAVA uses. You can tweak config files (wrapper.conf) on the vCenter Server. Again, the biggest hog is the Inventory Service. Here is how to reduce the memory requirements.
- Go to: C:\Program Files\VMware\Infrastructure\Inventory Service\conf
- Save a backup copy of WRAPPER.CONF
- Edit WRAPPER.CONF with a text editor
- Look for the section: # Maximum Java Heap Size (in MB)
- Modify "wrapper.java.maxmemory" Mine was set to 3072, I changed mine to 384.
- Save the file.
- Open Task Manager if you wish, and look for the JAVA process using the most RAM.
- Shutdown / Restart the service: VMware vCenter Inventory Service.
- Observe the memory difference.
You can also tweak the other services the same way.
- Webclient - Edit: C:\Program Files\VMware\Infrastructure\vSphereWebClient\server\bin\service\conf\wrapper.conf
- Management Webservices - Edit: C:\Program Files\VMware\Infrastructure\tomcat\conf\wrapper.conf
- Log Browser - Edit: C:\Program Files\VMware\Infrastructure\vSphereWebClient\logbrowser\conf\wrapper.conf
I kept all the services running and just tweaked the wrapper.conf files. My server went from 3.95GB of ram used (and running like crap) to 2.8GB used and running pretty good.
If you don't have many hosts and VMs you could have it running lean and mean (under 1GB of RAM) by just running the services below. This may be at the expense of vSphere Client performance and not seeing overview performance charts.
- vCenter Single Sign On
- VMware USB Arbitration Service
- VMware VirtualCenter Server
- I also SQL on this box.
Just wanted to say thank you. This helped me trim the fat a tad on our bogged down VCenter box.
ReplyDeleteI'm glad it helped.
DeleteFantastic! My vCenter was getting so bogged down I was seeing host disconnects due to timeouts, and a 5.8GB RAM (7GB commit) usage is now down to 3.8GB RAM (5GB commit).
ReplyDeleteGood to hear. I'm glad my research helped someone else as well!
DeletevCenter Single Sign On - does eat up some memory, but is nice to have.
ReplyDeleteIts nice to have.. its a requirement of vCenter after 5.1.
Thank you ! It works perfectly !
ReplyDeleteHow is your vSphere Client performing? We found it so slow that we actually increased the Java heap size. Our vCenter VM is now 32GB RAM, with the biggest java.exe process regularly consuming 12GB+. Lowering the heap size is great for reducing RAM usage on the server itself, but will often come at the expense of client application performance.
ReplyDeleteIt's working fine as configured. We only have 3 hosts and about 30 VMs.
ReplyDeleteJust want to echo these guys and say thanks, you saved me a lot of time.
ReplyDeleteHi,
ReplyDeleteI have changed the wrapper.conf as suggested and now CPU spike is went down,but the VMware vCenter Inventory Service is failed to start.
Please suggest what to do now.
Thanks, this was very helpful when I was troubleshooting high memory usage in VCenter.
ReplyDeleteHere is the official version direct from VMware support - http://kb.vmware.com/kb/2021302
ReplyDeleteha... I'm glad they finally addressed it...
DeleteOne to watch out for is enabling VM Flash Cache in 5.5 U1. This can exhibit the same symptoms, high memory and CPU use by the JAVA SE processes but changing the memory limits does nothing to help. Link enclosed.
ReplyDeletehttp://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2072392
In my case vcenter single sign on was taking 2,8G. restart. cleaned.
ReplyDeletethanks
nice post
ReplyDeleteSome times i just think what will be some customers life without help like this one found on internet.
ReplyDeleteThe softwares producer have take more carefull about their products and "new features".
I read a lot of tech material from vmware before upgrade and after, i have lost about 8 hours trying
to figure out my vcenter java memory problem, than i found your site.
I use some of your sugestions and like magic my memory that was 97% (3,97 gb) now is now 54%.
This is not a nice post, this is an amazing post.
Many thanks Brian Kayser for your technotes.
Thanks for share.
Márcio from brazil
Thank you Brian
ReplyDeletethank you!!
ReplyDelete
ReplyDeleteThank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
mobile application training in hyd
Apple iOS Training Institutes in Hyderabad
Still useful in 2020. Thank you!
ReplyDeleteMapleStory.es - 3D isometric adventure MMORPG<
ReplyDeleteDownload MapleStory and start the game.
https://maplestory.es/
MapleStory is a free to download 2D online video game of the MMORPG genre, created by the Korean company Wizet. Although the game is free to play, it includes other items that can be purchased for real money. Around the world, the game has millions of users. The story of the game is about some travelers who seek to save the Maple World from the terrible Black Mage. In this plot, the travelers become stronger as they eliminate the enemies of the game, many creatures of different appearance. As they advance in level, travelers choose the paths and disciplines to follow, which we will detail below.
What is MapleStory?
MapleStory 2 is a 3D isometric adventure MMORPG in which players create their own character and select one of several jobs to explore the new Maple World. Players will find several NPCs with various Quests, Monsters, and Bosses from the previous version, as well as completely new ones to fight against. The game also features dungeons and raids for players to team up with each other to complete.
Out of action
There are also a variety of activities for players to participate in, such as buying and building personal homes, crafting with Life Skills, fishing, composing music, creating custom user content such as custom clothing, and much more.
History of the last UPDATE
Nexon published the first closed beta test of the global version which ran from May 9, 2018 to May 16, 2018, and a second closed beta ran from July 18 to August 1, 2018. The game launched on October 10, 2018 with players who purchased a Founder's Pack on or after October 1, 2018. On Wednesday, May 27, 2020, Nexon ended service for the global version of MapleStory 2.
https://maplestory.es/
mmorpg oyunlar
ReplyDeleteinstagram takipçi satın al
tiktok jeton hilesi
tiktok jeton hilesi
antalya saç ekimi
referans kimliği nedir
instagram takipçi satın al
Metin2 Pvp Serverlar
instagram takipçi satın al
Good content. You write beautiful things.
ReplyDeletevbet
mrbahis
hacklink
vbet
hacklink
sportsbet
sportsbet
korsan taksi
mrbahis
Good text Write good content success. Thank you
ReplyDeletepoker siteleri
betpark
betmatik
bonus veren siteler
kibris bahis siteleri
slot siteleri
tipobet
kralbet
afyon
ReplyDeletebahçelievler
bingöl
karşıyaka
tekirdağ
R64
yurtdışı kargo
ReplyDeleteresimli magnet
instagram takipçi satın al
yurtdışı kargo
sms onay
dijital kartvizit
dijital kartvizit
https://nobetci-eczane.org/
0AO
salt likit
ReplyDeletesalt likit
W6İ
صيانة افران بجازان
ReplyDeleteصيانة افران
شركة مكافحة حشرات ابوظبي xJJqaDpd9w
ReplyDelete