How to limit the memory usage of a VB.NET process in Win Server 2008
Posted on 2010-01-03
Hi there. I currently host a website with a VPS (Virtual Private Server) which only has 1GB RAM. This limited memory is generally ok, however I need to run an console application (written in VB.NET) which can run at quite a high memory usage.
I don't need the console application to run fast... just to run all the way through without dying prematurely, having reached the machine's RAM limit.
As the server is a VPS I don't think I can make use of hard drive space to substitute for RAM (page file).
Instead, I'm hoping there is a way to limit the amout of RAM that the process uses, either through a Windows Server 2008 setting or somehow through the VB.NET code that the console application is written in.
Any advice greatly appreciated.