Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 91309 invoked from network); 20 Jan 2010 21:08:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 21:08:58 -0000 Received: (qmail 53660 invoked by uid 500); 20 Jan 2010 21:08:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 53635 invoked by uid 500); 20 Jan 2010 21:08:57 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 53625 invoked by uid 99); 20 Jan 2010 21:08:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 21:08:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.239.154.11] (HELO adonis.tweakers.net) (213.239.154.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 21:08:46 +0000 Received: from localhost (localhost [127.0.0.1]) by adonis.tweakers.net (Postfix) with ESMTP id DA6105DC0BC for ; Wed, 20 Jan 2010 22:08:25 +0100 (CET) Received: from adonis.tweakers.net ([127.0.0.1]) by localhost (adonis.tweakers.net [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 23609-03 for ; Wed, 20 Jan 2010 22:08:19 +0100 (CET) Received: from [192.168.1.33] (82-169-23-111.ip.telfort.nl [82.169.23.111]) by adonis.tweakers.net (Postfix) with ESMTPSA id 7B0465DC0BA for ; Wed, 20 Jan 2010 22:08:19 +0100 (CET) Message-ID: <4B5770C1.8050807@tweakers.net> Date: Wed, 20 Jan 2010 22:08:17 +0100 From: Arjen van der Meijden User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Gradually increasing, huge cpu-load when using Stomp+nio Content-Type: multipart/mixed; boundary="------------060701030607080001000407" X-Virus-Scanned: Maia Mailguard 1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org --------------060701030607080001000407 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi List, I just restarted a activemq 5.3-instance which was causing 1000% cpu (the machine has 8 cores, so all where fully working) and a load of 1035. I'm pretty confident that this load/cpu-usage was caused by using stomp+nio rather than 'stomp' (whether it was just nio or not, I don't know). Our usage-pattern is that we have a few queues with a single consumer each. The producers are php-web-processes that make a connection using stomp, send a few messages to some of the queues and disconnect again (which is why we have the transport.closeAsync=false). The heaviest two queues receive about 30-50 messages/second during peak hours (and thus, ActiveMQ receives about 30-50 connections/second). We also have a few topics that get messages quite infrequently, from similar stomp-producers, but those are consumed with java-based applications. The load/cpu-usage apparently has gradually increased, as can be seen in these two graphs: Cpu-usage http://tweakers.net/stats/?Action=Generator&Mode=Serverstats&Time=1263919627&Dagen=1&StatsServer=Argus&colServers=CPUUsage Load average http://tweakers.net/stats/?Action=Generator&Mode=Serverstats&Time=1263919627&Dagen=1&StatsServer=Argus&colServers=LoadAvg The increase in load has gone steadily in just a few hours up untill the moment where it took the php-processes more than 13 seconds to actually connect, send two messages and disconnect (rather than a few milliseconds). Our activemq.xml is attached, although I already replaced stomp+nio with normal stomp. Our ACTIVEM_OPTS is "-Xms2048M -Xmx2048M -XX:+UseParallelOldGC -server -Dorg.apache.activemq.UseDedicatedTaskRunner=true" (i.e. the default with adjusted memory and GC) The increasing load hasn't appeared yet with the adjusted config that uses non-nio connections. Unfortunately, this is a production server so I can't run tests very easily. Nor do I have a problem with not running nio, so this is mainly a mail to let you know of this problem, rather than me having a big issue with activemq right now :) Best regards, Arjen --------------060701030607080001000407 Content-Type: text/xml; name="activemq.xml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="activemq.xml" file:${activemq.base}/conf/credentials.properties --------------060701030607080001000407--