when multiple users accessing our application, each page takes time to load. so i have found memory leak is exist in jsp and servlet file. how to solve the memory leak problem in jsp and servlet.
give me some tips on using variable and creating object for a class in jsp and also in servlet.
which section i have to declare variable and create object for a class..
where should i assign null for that variable and objects?
When using Jasper 2 in a production Tomcat server you should consider making the following changes from the default configuration. development - To enable background compilation of JSP pages set this to false. fork - The internal JVM javac compiler used by Ant has a known memory leak. And Ant requires that java compiles be synchronized, i.e. only one JSP page can be compiled at a time. Set fork to true so that Ant compiles JSP pages in a seperate JVM. This removes the synchronization of JSP page compiles and prevents all the javac classes from being instantiated and subsequently garbage collected by the JVM Tomcat is running in.