Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 30727 invoked from network); 23 Apr 2010 23:37:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Apr 2010 23:37:40 -0000 Received: (qmail 812 invoked by uid 500); 23 Apr 2010 23:37:39 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 714 invoked by uid 500); 23 Apr 2010 23:37:39 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 697 invoked by uid 99); 23 Apr 2010 23:37:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 23:37:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Apr 2010 23:37:37 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3NNbFpX014991 for ; Fri, 23 Apr 2010 23:37:15 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o3NNbFL2014990; Fri, 23 Apr 2010 19:37:15 -0400 (EDT) Date: Fri, 23 Apr 2010 19:37:15 -0400 (EDT) Message-Id: <201004232337.o3NNbFL2014990@thor.apache.org> From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 49176] Jasper in Dev Mode Is Memory Inefficient X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Jasper X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: markt@apache.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: Status Resolution Severity In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=49176 Mark Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | Severity|minor |enhancement --- Comment #4 from Mark Thomas 2010-04-23 19:37:10 EDT --- Not having the page nodes after a restart is probably a separate issue (although one worth keeping in mind whilst thinking about this issue). Keep in mind that pageNode generation is expensive, relative to serving a response. Not caching the pageNodes is likely to open up a DOS attack vector. A theoretical (as in I haven't looked at the code to see if it is feasible or how much work it would be) is to ignore the pageNodes and use the SMAP. The SMAP could either be cached (should be much smaller than pageNodes) or read when required. Since it is saved in the .class file it would also survive a restart. I'd be tempted to cache it for the life of the JVM on compilation and read it from disk as required after a restart. I'm re-opening this and marking it as a (performance) enhancement. It will get looked at eventually, but enhancements tend to be at the bottom of people's todo list. If you wanted to provide a patch... -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org