Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 27CAE181AD for ; Wed, 13 Jan 2016 19:28:40 +0000 (UTC) Received: (qmail 53802 invoked by uid 500); 13 Jan 2016 19:28:40 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 53763 invoked by uid 500); 13 Jan 2016 19:28:39 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 53745 invoked by uid 99); 13 Jan 2016 19:28:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2016 19:28:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C78042C14F7 for ; Wed, 13 Jan 2016 19:28:39 +0000 (UTC) Date: Wed, 13 Jan 2016 19:28:39 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4587) LocalizedTextUtil not caching negative ResourceBundle.getBundle results MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15096843#comment-15096843 ] Lukasz Lenart commented on WW-4587: ----------------------------------- Looks very similar to WW-4575 > LocalizedTextUtil not caching negative ResourceBundle.getBundle results > ----------------------------------------------------------------------- > > Key: WW-4587 > URL: https://issues.apache.org/jira/browse/WW-4587 > Project: Struts 2 > Issue Type: Improvement > Components: Core Actions > Affects Versions: 2.3.24 > Reporter: Lauri Lehtinen > Fix For: 2.3.25 > > Attachments: struts2_issue.jstack1, struts2_issue.jstack2 > > > I have a few websites running under a single Tomcat packaged as separate war files. Recently, I have started to run into issues with thread starvation, which seems to stem from Struts 2. Specifically, calls to ResourceBundle.getBundle via LocalizedTextUtil.findResourceBundle end up contending on the lock for WebAppClassLoader. > When testing things locally, it looks like the findResourceBundle is called numerous times for each tag, with various bundle names being tried, many resulting in a MissingResourceException which does not get cached. > I will attach a couple of thread dumps that exemplify the situation. > If you suspect this is caused by something I am doing wrong on my end, please do let me know! -- This message was sent by Atlassian JIRA (v6.3.4#6332)