Remy Maucherat wrote:
> 
> > I've been giving this topic considerable thought for
> > the last month. Now that JSTL is getting close to
> > official release, performance may become a bigger
> > issue.
> >
> > I've been evaluating JSTL and experimenting with using
> > it for complex rendering logic. From what I've seen,
> > the common pattern of usage tends to have a limited
> > number of tags, with a few tags use repeatedly.  As
> > denis pointed out, the performance would improve,
> > though one other benefit is improved reliability.
> >
> > In my early benchmarks with JMeter and JProbe, deeply
> > nested try/catch statements results in excessive GC,
> > which kills reliability and performance. The work
> > Denis and Kin-man did recently has improved
> > performance dramatically for pages with lots of tags.
> > I have noticed on long tests that memory usage slowly
> > creeps up until I get "out of memory error".
> 
> The OOM errors may be caused because you have too many active sessions.

what I have noticed in JProbe is over time the trof gradually increases
and the spikes in memory usage increases in frequency. This behavior was
really noticeable in 4.0.3 jasper.  I haven't tried the latest patch by
kin-man and denis, but the earlier patch improved this significantly. 
An additional note, the behavior appeared when I ran benchmarks using 8+
threads in JMeter for several hours. I need to look into this in greater
detail to figure exactly why it happens.

> 
> > reusing tags probably won't improve performance by
> > 2-4x, but it should make deployments with JSTL tags
> > more stable.
> 
> I think you're pessimistic here. Depending on the page and the tags used
> (JDBC tags would kill throughtput, obvioulsy), it may be very significant.
> 
> Remy
You have a great point there.  I was thinking of the results I've seen
first hand, which do no use JDBC. the way JSTL works it could provide
significant performance improvement. if some one is using connection
pooling driver, the improvement might be significantly less.  I look
forward to further discussions on this topic. One thing I did do was to
manually tweak a jsp page and reuse a tag a couple of times. The page
compiled just fine and ran, but I never got around to changing all the
tags and running benchmarks.

if only I had 8 more hours a day, or didn't need sleep I could
experiment with different solutions a bit more.

peter

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

Reply via email to