Patches are always welcome, follow the directions here:

http://jakarta.apache.org/site/bugs.html

To submit a bug report.

I would recommend filling the bug report as opposed to posting
a patch to the mailing list.

Johannes Carlén wrote:

> Hi,
> I was running our application with JProbe and
> discovered that some pages with many html:links
> consumed a whole lot of memory. I did some research
> and found the computeURL() method in
> org.apache.struts.util.RequestUtils. In computeURL()
> *every* single key and value is url encoded by itself
> and then appended to the url string.
> 
> When trying a very simple test page with only one
> html:link tag on it and only one parameter (key/value)
> this increased the memory consumption by nearly
> 200kb's, and this consumption is linear by the number
> of parameters added!!! When changing the code,
> suddenly the memory consumed by some of our pages went
> down from 7-8MB's to 1.5MB. A real gain there...
> 
> When the url encoding takes place, some memory is used
> every time and I think this method should be used with
> care and only when needed. In this case, on the whole
> url string at the end of the method.
> 
> Will any of you guys take care of this or would you
> like some help? I have the modified source code by
> hand if you'd like it (however this should be a quick
> fix anyhow). 
> 
> Best regards
> /Johannes
> 
> _____________________________________________________
> Hitta snörapporter... 
> frĺn 500 olika skidorter i Europa
> pĺ http://se.snow.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> .
> 
> 


-- 
Robert Leland ([EMAIL PROTECTED])
804 N. Kenmore Street
Arlington, VA 22201-2225
Voice: 703-525-3580


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to