What is the best practice when dealing with errors in a server application?
In particular, how do you think the application should handle errors like OutOfMemoryError?
I am particularly interested in Java applications running in Tomcat, but I think this is a more general problem.
The reason I ask is because I am browsing a web application that often issues OOME, but usually it just logs them and then continues to execute. This obviously leads to more OOME.
Although this is certainly a bad practice, in my opinion, I'm not quite sure that stopping the server would be the best solution.
source
share