Is there a way to specify the maximum amount of memory an application is allowed to allocate... either programmatically or otherwise?