Bug 741931 - Getting many instantiations of I18nProvider
Summary: Getting many instantiations of I18nProvider
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-28 14:06 UTC by Jesus M. Rodriguez
Modified: 2015-05-14 16:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-17 13:03:24 UTC


Attachments (Terms of Use)
tomcat log showing I18nProvider creations (17.99 MB, application/x-gzip)
2011-09-28 14:09 UTC, Jesus M. Rodriguez
no flags Details

Description Jesus M. Rodriguez 2011-09-28 14:06:34 UTC
The I18nProvider ctor prints out a message: "Getting i18n engine for locale "
every time it is constructed (that's a GOOD thing, please leave the
log statement in).

The problem is that in roughly a 12 hour period I18nProvider was
constructed 351992 times, with the Candlepin server receiving only
23721 requests.

Comment 1 Jesus M. Rodriguez 2011-09-28 14:06:59 UTC
IRC convo which lead to this bug:

<jmrodri> grep "Getting i18n engine for locale" /var/log/tomcat6/catalina.out | wc -l
<jmrodri> 351992
<jbowes> yeah, it's chatty
<jmrodri> start of log: Sep 27, 2011 8:49:50 PM
<jmrodri> end of log: Sep 28 09:59:10 AM
<jmrodri> jbowes: In only made 23721 requests
<jmrodri> grep Request: /var/log/tomcat6/catalina.out | wc -l
<jmrodri> 23721
<beav> whoa
* jmrodri wonders if some of that is from pinsetter
<jmrodri> either way seems wasteful

Comment 2 Jesus M. Rodriguez 2011-09-28 14:09:12 UTC
Created attachment 525344 [details]
tomcat log showing I18nProvider creations

Comment 3 Jesus M. Rodriguez 2011-12-20 16:35:51 UTC
Attachment causes no translations to occur. Because the locale is set the first time it is created i.e. en_US.

Comment 5 Bryan Kearney 2012-07-17 13:03:24 UTC
Marking all community bugs modified or beyong as closed.


Note You need to log in before you can comment on or make changes to this bug.