Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C56D9ED2 for ; Wed, 18 Apr 2012 08:17:08 +0000 (UTC) Received: (qmail 16319 invoked by uid 500); 18 Apr 2012 08:17:07 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 16128 invoked by uid 500); 18 Apr 2012 08:17:03 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 16076 invoked by uid 99); 18 Apr 2012 08:17:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 08:17:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 08:16:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9452939FCC5 for ; Wed, 18 Apr 2012 08:16:32 +0000 (UTC) Date: Wed, 18 Apr 2012 08:16:32 +0000 (UTC) From: "Krashan Brahmanjara (Commented) (JIRA)" To: dev@myfaces.apache.org Message-ID: <1766244635.36418.1334736992992.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2094127931.24780.1326179800655.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MYFACES-3442) Infinite loop when calling ApplicationImpl._handleListenerForAnnotations under heavy load 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/MYFACES-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256287#comment-13256287 ] Krashan Brahmanjara commented on MYFACES-3442: ---------------------------------------------- Please apply this patch also for 1.1 and 1.2 branch. > Infinite loop when calling ApplicationImpl._handleListenerForAnnotations under heavy load > ----------------------------------------------------------------------------------------- > > Key: MYFACES-3442 > URL: https://issues.apache.org/jira/browse/MYFACES-3442 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.1.3 > Reporter: Michael Dietrich > Assignee: Leonardo Uribe > Fix For: 2.0.12, 2.1.6 > > > Hi, > when doing Load Tests, we recognize that we sometimes got stuck in an infinite loop, when calling the _handleListenerForAnnotations method of the ApplicationImpl class. According to our analysis, this is related to the _classToListenerForMap attribute that is is defined as plain HashMap, so no synchronisation takes place when it is accessed from several threads. Our suggestion would be, to define it as a ConcurrentHashMap instead, because according to our experience, such kind of infinite loops due to concurrency don't occur with ConcurrentHashMaps. > Kind regards, > Michael -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira