Put it on a box that you can install whatever you want.
Set the max heap size to be a low value. Start at 500 meg and move it down. You want to get to the point where the app works but where it starts thrashing very soon (with little load.)
Then debug/profile away using appropriate tools.
Once you have an idea, up the max heap on that box, increase the load, and validate the idea.