My Java EE
application runs just fine on host server , but it uses a lot of heap space . allowed heap space is 64MB
. I am getting my hosting account suspended every time my app uses more then 64 MB
heap. I think the hosting provider has not set the max heap space for my app , that is why i am not getting the outOfMemoryException
on reaching >64MB
.
I have my own instance of tomcat, i can configure tomcat configurations.
My question is - how can i set the max allowed heap space for my tomcat instance so that it throws outOfMemoryException
on reaching the limit ?
that way my hosting account will not get suspended.
here is the catlina.bat and catlina.sh
where do i have to make changes in these files ?