Bug 741931

Summary: Getting many instantiations of I18nProvider
Product: [Community] Candlepin Reporter: Jesus M. Rodriguez <jesusr>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: low    
Version: 0.5CC: bkearney
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-17 13:03:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
tomcat log showing I18nProvider creations none

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.