tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49176] Jasper in Dev Mode Is Memory Inefficient
Date Fri, 23 Apr 2010 23:37:15 GMT

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message