How to Disable JSP caching on Tomcat 5.5.25
Posted on 2008-06-19
I'm currently working on a project involving JSP documents being served from an Apache Tomcat 2.2.25 server. The application and the pages are served out without any issues but I noticed that memory usage is rapidly being consumed by the tomcat5.exe process after page requests.
Each request results in a dynamically generated JSP file. I've been reading around the various forums and gather that for each new JSP that is served out - Tomcat automcatically converts the JSP to a in-memory servlet the first time someone tries to access the page's content.
As such, I find that with each new page that is generated, it constantly consumes memory. Is there a way to disable this caching of the JSP page or prevent the converting into in-memory servlet?
Many Thanks in advance