Available virtual memory is controlled by a setting you can adjust. If you're constantly running low, you should look at what you're running.
How Do I Adjust Virtual Memory Settings? from Ask Leo!.
Get the Confident Computing weekly newsletter: https://newsletter.askleo.com