One possible solution would be to run the application and MySQL in a virtualized environment. Usually you can control the RAM and the number of processors to see how it will work.
Check out http://www.virtualbox.org , this is the best I've used, and it's free.
source
share