Changed the memory leak function to a schedule. This means the war is deployed, and then starts consuming memory. Before the app would just be undeployed because the memory leak happened during deployment.