Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 42093 invoked from network); 20 Mar 2009 05:53:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 05:53:07 -0000 Received: (qmail 48870 invoked by uid 500); 20 Mar 2009 05:53:07 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 48852 invoked by uid 500); 20 Mar 2009 05:53:07 -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 48841 invoked by uid 500); 20 Mar 2009 05:53:06 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 48838 invoked by uid 99); 20 Mar 2009 05:53:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 22:53:06 -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; Fri, 20 Mar 2009 05:53:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6835234C004 for ; Thu, 19 Mar 2009 22:52:43 -0700 (PDT) Message-ID: <148902351.1237528363811.JavaMail.jira@brutus> Date: Thu, 19 Mar 2009 22:52:43 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Assigned: (CAMEL-1467) OutOfMemory Exception in XMPP Component In-Reply-To: <540235739.1237484142779.JavaMail.jira@brutus> 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 [ https://issues.apache.org/activemq/browse/CAMEL-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen reassigned CAMEL-1467: ---------------------------------- Assignee: Claus Ibsen > 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 > Assignee: Claus Ibsen > Fix For: 2.0.0 > > Original Estimate: 5 minutes > Remaining Estimate: 5 minutes > > 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.