How to set Java heap space in Apache Tomcat?

If Java runs out of memory, the following error occurs: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space This can have two reasons: Your Java application has a memory leak. There are tools like YourKit Java Profiler that help you to identify such leaks. Your Java application really needs a lot of memory (more than …

Read more