We are using jboss 7.1.1 for our application and we are encountering Java Heap issue sometimes and get out of memory exception (We are looking for Memory leaks in code). I was wondering if there's a way in jboss 7.1.1 or any other future version of jboss which can automatically stop the process when it encounters OoO exception to minimize the impact. Let me know if this is possible.
Thanks.