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.
NytroZAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

http://www.virten.net/2014/09/remove-virtual-machine-swap-file-vswp/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.