Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0B931883D for ; Sat, 28 Nov 2015 14:14:11 +0000 (UTC) Received: (qmail 5924 invoked by uid 500); 28 Nov 2015 14:14:11 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 5840 invoked by uid 500); 28 Nov 2015 14:14:11 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 5630 invoked by uid 500); 28 Nov 2015 14:14:11 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 5577 invoked by uid 99); 28 Nov 2015 14:14:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2015 14:14:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 398272C1F76 for ; Sat, 28 Nov 2015 14:14:11 +0000 (UTC) Date: Sat, 28 Nov 2015 14:14:11 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9068) Listing Port Forwarding Rules take too much time to 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/CLOUDSTACK-9068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030527#comment-15030527 ] ASF subversion and git services commented on CLOUDSTACK-9068: ------------------------------------------------------------- Commit 48ade0537020a57da99e8b3aa69c96aae35533a8 in cloudstack's branch refs/heads/master from [~remibergsma] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=48ade05 ] Merge pull request #1081 from nitin-maharana/CloudStack-Nitin15 CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to loadFor setting the width of each data item for each row of Port Forwarding rules, it was processing all rules. Basically for each data item, it was searching in all rules, which is un-necessary. If there are N-Rules, It was processing N-times. Now, it only processes one time by taking all N-rules at a time. The previous solution was of O(NxN). Now its changed to O(N). * pr/1081: CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to load Signed-off-by: Remi Bergsma > Listing Port Forwarding Rules take too much time to load > -------------------------------------------------------- > > Key: CLOUDSTACK-9068 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9068 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Nitin Kumar Maharana > > ISSUE > ================== > The performance of listPortForwardingRules slows down dramatically as the number of rules for an IP increases. If there are 100 rules for an IP and it takes over a minute to respond. > REPRODUCE STEPS > ================== > 1) Create many port forwarding rules (75-100) for a particular IP. > 2) View the port forwarding rules for the IP in the UI or directly with the listPortForwardingRules API command. > 3) Notice the slowness. > EXPECTED BEHAVIOR > ================== > listPortForwardingRules should always respond in a reasonable time. > ACTUAL BEHAVIOR > ================== > listPortForwardingRules responds very slowly even with less than 100 rules configured. -- This message was sent by Atlassian JIRA (v6.3.4#6332)