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 1071EC5B6 for ; Mon, 30 Apr 2012 15:56:11 +0000 (UTC) Received: (qmail 90680 invoked by uid 500); 30 Apr 2012 15:56:10 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 90634 invoked by uid 500); 30 Apr 2012 15:56:10 -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 90617 invoked by uid 99); 30 Apr 2012 15:56:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2012 15:56:10 +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; Mon, 30 Apr 2012 15:56:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3305C428661 for ; Mon, 30 Apr 2012 15:55:49 +0000 (UTC) Date: Mon, 30 Apr 2012 15:55:49 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <1008435159.9640.1335801349210.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1303820389.311.1335362059083.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3819) high cpu with stomp+nio+ssl and many subscriptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264993#comment-13264993 ] Timothy Bish commented on AMQ-3819: ----------------------------------- Tested here with the fix Dejan posted and the NIO+SSL test works as expected now on my machine. Would be good confirmation to see if that ruby client test is working now. > high cpu with stomp+nio+ssl and many subscriptions > -------------------------------------------------- > > Key: AMQ-3819 > URL: https://issues.apache.org/jira/browse/AMQ-3819 > Project: ActiveMQ > Issue Type: Bug > Components: stomp > Affects Versions: 5.6.0 > Environment: CentOS 6, RC of 5.6.0 > java version "1.6.0_22" > OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.43.1.10.6.el6_2-x86_64) > OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) > Reporter: R.I.Pienaar > Attachments: StompLoadTest.java, StompNIOSSLLoadTest.java > > > Switching an existing workload from a transport: > {quote} > > {quote} > to > {quote} > > {quote} > showed the CPU profile to go from 1-5% to 300% constantly on a 8 core server > I was able to recreate this using a ruby client @ http://devco.net/rip/amq_560_stomp_nio_ssl_tester.rb > The important combinations are: > * I am connecting to a stomp+nio+ssl port > * I am creating the subscriptions to the 10 queus and topics > If I change either of these variables - like just commenting out the loop that does those subscriptions - then the CPU load is acceptable. > I analysed the running VM with VisualVM and found that transport.nio.NIOSSLTransport.serviceRead() is the busy thread. > My activemq.xml is: > {noformat} > xmlns="http://www.springframework.org/schema/beans" > xmlns:amq="http://activemq.apache.org/schema/core" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd > http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > keyStore="keystore.jks" keyStorePassword="ohshahCu" > trustStore="truststore.jks" trustStorePassword="ohshahCu" > /> > > > > > > > > > > > > > > > > > > > > > > > > {noformat} -- 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