tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vernon Smith" <vwu98...@lycos.com>
Subject Re: Performance issues
Date Sun, 18 Jan 2004 16:22:28 GMT
We are also concerning i18n implementation impact on server performance. The overhead you mentioned
is a logical result of the i18n approach you use. If there is not the fmt tag in a JSP file,
the file will be cached in the memory after it is translated. That is a behaviour in Tomcat,
may be the same for other containers. To have dynamic content of a JSP file, a set of messages
need to be pulled into the file when a locale new request comes in. That is how the overhead
occurs.

To resolve this performance, you shall use the other approach: a set of JSP files per locale.
This approach requests almost double development work on JSP files unless there were a localization
JSP file editor.  
--

--------- Original Message ---------

DATE: Sun, 18 Jan 2004 05:34:15
From: Evgeny Gesin <evgenygesin@yahoo.com>
To: Tag Libraries Users List <taglibs-user@jakarta.apache.org>
Cc: 

>We actually use JSTL to support multiple locales and
>languages, so each web page calls its i18n taglib as
>many times as the number of text labels, currencies,
>dates, and other elements on the screen. JSTL
>slowdowns web server, we monitor an average 3-10% CPU
>comparing to 0,3-1% without JSTL (in the same
>application). I think overload of JSTL can reduce by
>2-3 times the number of web application on a dedicated
>server to run at resonable performance.
>
>Evgeny Gesin
>Javadesk CEO / Founder
>
>--- Colin Chalmers <Colin.Chalmers@xs4all.nl> wrote:
>> Karr, David wrote:
>> 
>> >Just in case, are you doing your measurements AFTER
>> the first
>> >generation/compile of the servlet? It's not
>> meaningful to measure taglib
>> >performance before then.
>> >
>> Measurements are taking place during a continuous
>> load of approx 60 users.
>> 
>> >
>> >With respect to "caching" evaluation results, it's
>> probably not worth
>> >it, as it would have to do most of the evaluation
>> before it could
>> >determine that nothing has changed, causing a cache
>> read.
>> >
>> 
>> OK, thx for the reply
>> 
>> Colin
>> 
>> >
>> >-----Original Message-----
>> >From: Colin Chalmers
>> [mailto:Colin.Chalmers@xs4all.nl] 
>> >
>> >Hi all,
>> >
>> >We've just started implementing TagLibs in our App
>> and are seeing a 
>> >couple of performance issues which I'd like to
>> check with the group.
>> >
>> >We make heavy use of theExpressionEvaluationManger,
>> is there any way to 
>> >tweak this so that it pools/caches results?
>> >
>> >We also make a lot of use of the
>> choose/when/otherwise
>> >
>> >Can this be a potential bottleneck compared to
>> using a simple "if"
>> >loop?
>> >
>> >Thx
>> >
>> >Colin
>> >
>> >
>>
>>---------------------------------------------------------------------
>> >To unsubscribe, e-mail:
>> taglibs-user-unsubscribe@jakarta.apache.org
>> >For additional commands, e-mail:
>> taglibs-user-help@jakarta.apache.org
>> >
>> >
>>
>>---------------------------------------------------------------------
>> >To unsubscribe, e-mail:
>> taglibs-user-unsubscribe@jakarta.apache.org
>> >For additional commands, e-mail:
>> taglibs-user-help@jakarta.apache.org
>> >
>> >
>> >
>> >  
>> >
>> 
>> 
>> 
>>
>---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> taglibs-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> taglibs-user-help@jakarta.apache.org
>> 
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>http://hotjobs.sweepstakes.yahoo.com/signingbonus
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>



____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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


Mime
View raw message