Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 43551 invoked from network); 19 Mar 2009 17:36:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2009 17:36:04 -0000 Received: (qmail 65132 invoked by uid 500); 19 Mar 2009 17:36:04 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 65108 invoked by uid 500); 19 Mar 2009 17:36:04 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 65097 invoked by uid 500); 19 Mar 2009 17:36:03 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 65094 invoked by uid 99); 19 Mar 2009 17:36:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 10:36:03 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 17:36:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C14CB234C003 for ; Thu, 19 Mar 2009 10:35:42 -0700 (PDT) Message-ID: <540235739.1237484142779.JavaMail.jira@brutus> Date: Thu, 19 Mar 2009 10:35:42 -0700 (PDT) From: "Orton Huang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-1467) OutOfMemory Exception in XMPP Component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org OutOfMemory Exception in XMPP Component --------------------------------------- Key: CAMEL-1467 URL: https://issues.apache.org/activemq/browse/CAMEL-1467 Project: Apache Camel Issue Type: Bug Components: camel-xmpp Environment: Mac OS 10.4.11, Java 1.5, Smack 3.0.4/3.1.0 Reporter: Orton Huang Fix For: 2.0.0 on publishing messages lots of messages using XMPP component (layered on top of Smack 3.0.4/3.1.0 client), Out of Memory Exception occurs. With standard JVM settings, client runs out of memory at around 6600 messages sent. With -Xmx1024M set, client runs out at ~110K messages sent. Appears that on a chat.sendMessage(message); The server sends the message back and the messages needs to be processed on the client side or the client will continue filling its local queue until it runs out of memory FIX: For XmppPrivateChatProducer and XmppGroupChatProducer, need to insert chat.nextMessage() after chat.sendMessage() public void process(Exchange exchange) { ... try { chat.sendMessage(message); chat.nextMessage(); } catch (XMPPException e) { throw new RuntimeXmppException(e); } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.