Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Remove comment about memory leak during JSP recompliation. Tomcat 4.1 docs said to set fork="true" in Jasper due to leaks in Sun's javac. http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html

...

Also look at YourKit, or maybe you IDE has a profiling tool in it, or other profiling tools are available. (The following tools were recommended by many people in the past, but now seem to be discontinued by their vendors: JProbe by Quest Software — the company was acquired by Dell, OptimizeIt by Borland). This is not an endorsement for them, I just notice other people like them.

JSP Recompilation

If your application uses JSPs which are frequently recompiled at runtime, e.g. headers that change value hourly, please make sure to read the JSP HOW-TO page and RELEASE NOTES documents. You may wish to tune the JSP compiler configuration to prevent memory leaks. Of course, these are documents you should have read by now anyways..

Questions

  1. How do I adjust memory settings?
  2. Why do I get OutOfMemoryError errors?
  3. How much memory is Tomcat/webapp/??? using?

...