I have set Java_opts and catalina_opts one after another still I am getting error
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.OutOfMemoryError: Java heap space
As I understand it's caused by garbage collector not freeing objects, Is there any precautionary measrues I can take that I will not get this error in first place.