added process prioritation and memory limits to java process