Reduce vswp file

I created a 30GB vm on a 130GB data store.  The free capacity is only 30Gb now.  Browsing the data store I noticed there is a 64GB .vswp file.  Can this file size be reduced or moved to a different data store?  The application doesn't usually use all of the physical memory so I shouldn't need a file that large.
Who is Participating?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
A vSWP file is created which is the same size as the allocated memory in the VM.

You can relocate the swap file to another datastore.

The swap file can be reduced in size, by changing the memory reservation setting.

So your answers are yes and yes, you can move the swap file, and you can also, change it's size!

see here for an example, if you reserve all the memory for the VM, the swap file size will be reduced, even to zero, if you reserve it all
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.