tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28236] New: - org.apache.jasper.runtime.BodyContentImpl buffer is too small
Date Tue, 06 Apr 2004 16:54:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28236>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28236

org.apache.jasper.runtime.BodyContentImpl buffer is too small

           Summary: org.apache.jasper.runtime.BodyContentImpl buffer is too
                    small
           Product: Tomcat 5
           Version: 5.0.19
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: levadura@mail.ru


Well actually in reAllocBuff() method the policy is to incriment it by a 
constant (512 bytes). In my case with a BIG <select> tag 99% of CPU is 
used just to increment the buffer. 

The suggestion is to use

***************
len = Math.max(Constants.DEFAULT_TAG_BUFFER_SIZE, cb.length);
***************
instead of
***************
        if (len < Constants.DEFAULT_TAG_BUFFER_SIZE) {
            len = Constants.DEFAULT_TAG_BUFFER_SIZE;
        }
***************

In my case (I'm using JSF RI 1.0) the change is from ~26 min to 2 sec.

Sincerely,

unknown

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message