You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2004/11/19 11:43:22 UTC
DO NOT REPLY [Bug 32311] New: -
Performance: fmt:formatDate regarding calls to Calendar.getInstance
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=32311>.
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=32311
Summary: Performance: fmt:formatDate regarding calls to
Calendar.getInstance
Product: Taglibs
Version: 1.0.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Standard Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: nijlunsing_h@schiphol.nl
When loadtesting our site with 10 users to a page which makes a lot of use of
the fmt:formatdate, the hits / seconds drop and fluctuate tremondously between 5
hits / sec and 20 hits per sec.
With 1 or 2 users the hits per second maintain constantly at 20 hits / sec.
Using Weblogic 6.1 SP4, with 15 (default) execute threads, memory / garbage
collection is not a problem.
After creating threaddumps is appears that almost all threads have these
stacktraces on the top:
at java.util.Calendar.getInstance(Calendar.java:829)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:326)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:317)
at java.text.DateFormat.get(DateFormat.java:645)
at java.text.DateFormat.getTimeInstance(DateFormat.java:411)
at
org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport.createFormatter(FormatDateSupport.java:223)
at
org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport.doEndTag(FormatDateSupport.java:155)
And are all "waiting on monitor XXXXX", it seems these calls are blocking each
other, possible due to the fact that getInstance is synchronized?
Other pages which are not using this tag are not a problem.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org