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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to