Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36CCC18D56 for ; Mon, 9 Nov 2015 21:14:11 +0000 (UTC) Received: (qmail 6112 invoked by uid 500); 9 Nov 2015 21:14:11 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 6082 invoked by uid 500); 9 Nov 2015 21:14:11 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 6066 invoked by uid 99); 9 Nov 2015 21:14:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2015 21:14:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 066152C1F5A for ; Mon, 9 Nov 2015 21:14:11 +0000 (UTC) Date: Mon, 9 Nov 2015 21:14:11 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: commits@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-1085) WebClusterManager starves immutable API requests under heavy load conditions 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/NIFI-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14997369#comment-14997369 ] ASF subversion and git services commented on NIFI-1085: ------------------------------------------------------- Commit 6add372bc142304ef25e0bafb49709654a995f08 in nifi's branch refs/heads/master from [~boardm26] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=6add372 ] NIFI-1085 WebClusterManager fair locking and HeartbeatMonitoringTimerTask scheduling > WebClusterManager starves immutable API requests under heavy load conditions > ---------------------------------------------------------------------------- > > Key: NIFI-1085 > URL: https://issues.apache.org/jira/browse/NIFI-1085 > Project: Apache NiFi > Issue Type: Improvement > Components: Core Framework > Affects Versions: 0.3.0 > Reporter: Michael Moser > Fix For: 0.4.0 > > > With a 6 node cluster with thousands of components on the graph, we noticed that the ReentrantReadWriteLock in WebClusterManager can starve NiFi Web Server threads that are waiting on the read lock. > Thread dumps shows the HeartbeatMonitoringTimerTask thread holding the write lock while many Web Server threads are parked waiting on the read lock. > Modify the ReentrantReadWriteLock to operate in fair mode (to give the lock to threads waiting the longest, such as those wanting the read lock). > Modify the HearbeatMonitoringTimerTask timer to not be scheduleAtFixedRate() but instead use schedule() to execute it less often if garbage collection blocks it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)