VMware Cloud Community
smrajan
Contributor
Contributor

Host memory usage is high

Hi All,

We have recently implemented ESX4 cluster with 4 hosts. there are 94 VMs in total windows 2008 R2 x64. we have most of the developers so they need a 4 GB RAM on each VM's. Since i upgraded it my all ESX Hosts are running with 85-90 % of memory usage. when i checked the resource usage All VM's it taking all of the RAM assigned to them on Host but the Guest usage is very minimal.

I investigated on many forums and tried everything (changed CPU/MMU virtualization option, DynCache doesnt work on R2) but didnt help at all. i am a bit scared about the usage of memory on my hosts whenever i check the performance tap. Is there any way i can minimize the memory usage or any best way to handle it. Any help and suggestion would be appreciated.

Thanks,

Rajan

Reply
0 Kudos
25 Replies
RParker
Immortal
Immortal

I investigated on many forums and tried everything

Let me save you a LOT of time. Windows 2008 TAKES all available RAM. It caches it, when it's not in use. This is normal. It's because Hyper-V doesn't do transparent sharing of memory, so when you assign memory to a VM on Hyper-V you can't over commit memory. Why is this relevant?

Because BOTH products are Microsoft, and there really isn't a problem, you just have to be aware of what's going on. There is no way to get Windows 2008 to relinquish the memory, that's how it's designed.

I also notice that you said the memory in the VM is low, that means its not being used, that means you are giving WAY too much memory in Windows 2008 VM's, even for developers. We have developers also, and one BIG mistake most NEW ESX admins (and ones that aren't paying attention) VM's don't need as much RAM as physical hosts (too many reasons to list). Suffice to say, reduce the memory footprint for your VM's to 50%. We give no MORE than 2GB for any Windows 2008 VM and we use Visual Studio, Customer Relational programs, and an assortment of debugging tools, and 2GB is fine, still high in many cases. We have Windows 2003 VM's with 1GB, that's PLENTY for what they are doing. Don't believe the hype. Admins and VM ware are smarter than users, remember that.

They don't know how VM works (the users) so don't let them dictate what they need. Give them 2GB, you will reduce your host memory and they will still get what they need.

Reply
0 Kudos
smrajan
Contributor
Contributor

Hi awo,

I rebooted all esx hosts last saturday, i was checking the activity side by side all the vm's were migrated to another hosts fine. some users complained me that their windows VM's were asking for a reason for restart, when i checked on VM's they all showing uptime is only 3 days, looks like they been hardly shutdown when i rebooted hosts on saturday. As i mentioned previously Memory allocation on all hosts are 80%, is that because of that all the vm's were down on reboot process or am i misunderstanding something ?

Thanks

Rajan

Reply
0 Kudos
chaikeong
Contributor
Contributor

If i understand you correctly, it sounds like you rebooted all your esx hosts while your vms are still running on them. It also seem that neither your hosts were configured to shutdown running vms nor were they put into maintence mode before shutting down, which in the latter case, if they were in a drs cluster, they would be migrated to another running host.

Hence in your case, either HA took place and all your vms were restarted on another host in the HA cluster, or your hosts were configured to start those vms upon startup.






chaikeong

http://ckcloud.blogspot.com/

Reply
0 Kudos
chaikeong
Contributor
Contributor

It also seem that this is not related to the original thread. :grinning_face_with_big_eyes:






chaikeong

http://ckcloud.blogspot.com/

Reply
0 Kudos
smrajan
Contributor
Contributor

Thanks for your reply, yes i rebooted all hosts while all vm's were running. All hosts were went to maintenance mode and vm's were migrated to another host. i checked the settings on hosts, the startup option of VM's are DISABLED. my understanding was vm's are stay on while migrating to another host. not sure why they were restarted, is there any where i can check it why this happens ?

Thanks again

Rajan

Reply
0 Kudos
ManivelR
Hot Shot
Hot Shot

I have a question hee.

Anyone can help?

Reply
0 Kudos