Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-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 4608917D32 for ; Wed, 22 Apr 2015 05:33:59 +0000 (UTC) Received: (qmail 7155 invoked by uid 500); 22 Apr 2015 05:33:59 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 7076 invoked by uid 500); 22 Apr 2015 05:33:59 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 7060 invoked by uid 99); 22 Apr 2015 05:33:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 05:33:59 +0000 Date: Wed, 22 Apr 2015 05:33:58 +0000 (UTC) From: "Arthur Naseef (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-5598) MQTT+NIO+SSL: Concurrent connections lead to 100% CPU usage 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/AMQ-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14506456#comment-14506456 ] Arthur Naseef commented on AMQ-5598: ------------------------------------ I see - thank you for the clarification. MQTT and AMQP are still vague in my mind and hence I lump them together - I need to find time to learn them. > MQTT+NIO+SSL: Concurrent connections lead to 100% CPU usage > ----------------------------------------------------------- > > Key: AMQ-5598 > URL: https://issues.apache.org/jira/browse/AMQ-5598 > Project: ActiveMQ > Issue Type: Bug > Components: MQTT > Affects Versions: 5.10.0, 5.11.0 > Environment: Red Hat Enterprise Linux Server release 6.6 (Santiago), Open JDK 64bit 1.7.0.75, 3Gig RAM, 30Gig HDD - 1x ActiveMQ 5.10 > Windows 7 x64, Java 64bit 1.7.0, 8Gig RAM, 1x ActiveMQ 5.10, 1x ActiveMQ 5.11 > Reporter: Josef Awad > Labels: performance, security > Attachments: Screen Shot 2015-02-12 at 8.31.58 PM.png > > > Connecting with multiple instances of mqtt clients via ssl at the same time causes the borker server to run on 100% CPU usage forever. Only restart of ActiveMQ helps. Thread count maximizes during connection attempt. > Critical: It doesn't matter if the certificate is valid or not, I am able to shut down the broker from one client with 500 concurrent connecting instances. The payload size is not important. The problem is somewhere at the ssl handshake located. Without ssl everything works fine. Single ssl connections work. > Similar issues (with older versions) described are here: > - http://activemq.2283324.n4.nabble.com/SSL-handshake-stalls-broker-with-NIO-td4677916.html > - http://stackoverflow.com/questions/19395769/activemq-mqtt-maxes-cpu-on-first-client-connect > -- This message was sent by Atlassian JIRA (v6.3.4#6332)