톰캣 7에서는  로딩되는 Jsp 개수를 지정할 수 있을 수 있도록 코드 수정을 하였다.
Mark Tomas는 tight한 memory를 쓰는 곳에 유용할 것이라고 하였다..

https://issues.apache.org/bugzilla/show_bug.cgi?id=48358

적당한 크기를 넘치면, jsp 하나 꺼내서 uload하고 destory 한다.
수정된 코드는 다음과 같다.
http://svn.apache.org/viewvc?view=revision&revision=937787

    tomcat/trunk/java/org/apache/jasper/util/Entry.java   (with props)

    tomcat/trunk/java/org/apache/jasper/util/JspQueue.java   (with props)

Modified:

    tomcat/trunk/conf/web.xml

    tomcat/trunk/java/org/apache/jasper/EmbeddedServletOptions.java

    tomcat/trunk/java/org/apache/jasper/JspC.java

    tomcat/trunk/java/org/apache/jasper/Options.java

    tomcat/trunk/java/org/apache/jasper/compiler/JspRuntimeContext.java

    tomcat/trunk/java/org/apache/jasper/resources/LocalStrings.properties

    tomcat/trunk/java/org/apache/jasper/servlet/JspServlet.java

    tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java

    tomcat/trunk/webapps/docs/changelog.xml

    tomcat/trunk/webapps/docs/jasper-howto.xml

추가된 설명을 보면.. 다음과 같다.



+<li><strong>maxLoadedJsps</strong> - The maximum number of JSPs that

+will be loaded for a web application. If more than this number of JSPs

+are loaded, the least recently used JSPs will be unloaded so that the

+number of JSPs loaded at any one time does not exceed this limit. A

+value of zero or less indicates no limit. Default <code>-1</code></li>

+

 <li><strong>modificationTestInterval</strong> - Causes a JSP (and its dependent

 files) to not be checked for modification during the specified time interval  (in seconds) from the last time the JSP was checked for modification. A value of

Posted by 김용환 '김용환'

댓글을 달아 주세요