Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-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 96F4C7585 for ; Wed, 9 Nov 2011 17:30:15 +0000 (UTC) Received: (qmail 80926 invoked by uid 500); 9 Nov 2011 17:30:15 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 80900 invoked by uid 500); 9 Nov 2011 17:30:15 -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 80892 invoked by uid 99); 9 Nov 2011 17:30:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 17:30:15 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Wed, 09 Nov 2011 17:30:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E28D544373 for ; Wed, 9 Nov 2011 17:29:51 +0000 (UTC) Date: Wed, 9 Nov 2011 17:29:51 +0000 (UTC) From: "Claus Ibsen (Commented) (JIRA)" To: dev@camel.apache.org Message-ID: <2130339610.14910.1320859791929.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-2740) Using static queue as a reply queue in InOut pattern causes memory leak 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/CAMEL-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147173#comment-13147173 ] Claus Ibsen commented on CAMEL-2740: ------------------------------------ Well the sample project from David itself also causes high memory occupation as it creates 1.000.000 tasks on the executor service pool, which is stored in memory. For example using a sample with for example 50.000 tasks does not take up so much memory. > Using static queue as a reply queue in InOut pattern causes memory leak > ----------------------------------------------------------------------- > > Key: CAMEL-2740 > URL: https://issues.apache.org/jira/browse/CAMEL-2740 > Project: Camel > Issue Type: Bug > Components: camel-jms > Affects Versions: 2.2.0 > Environment: Originally reported on Windows 2003 server and recently confirmed on OSX in a stand alone unit test. > Reporter: Qingyi Gu > Assignee: Claus Ibsen > Fix For: 2.7.5, 2.8.3, 2.9.0 > > Attachments: CAMEL-2740 Memory Usage.jpg, CAMEL-2740.tar.gz > > > I am running JBoss, ActiveMQ and Camel for my application. In the InOut pattern, I am using a predefined static queue as a reply queue. After running for a while, the memory usage of JBoss keeps growing and growing until it hits outOfMemory error and app server is totally hung. I monitor the thread in jconsole, I can see the jms connection/session keeps growing and growing. > But once I switch to use temp queue for InOut pattern, this problem goes away. -- 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