Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE92811E5A for ; Mon, 7 Jul 2014 15:30:04 +0000 (UTC) Received: (qmail 48623 invoked by uid 500); 7 Jul 2014 15:30:04 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 48574 invoked by uid 500); 7 Jul 2014 15:30:04 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 87784 invoked by uid 99); 7 Jul 2014 15:09:31 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of rubancse@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Mon, 7 Jul 2014 08:09:06 -0700 (PDT) From: rubancsp To: users@camel.apache.org Message-ID: <1404745746800-5753468.post@n5.nabble.com> In-Reply-To: <1359012116101-5726113.post@n5.nabble.com> References: <1358982445128-5726103.post@n5.nabble.com> <1359012116101-5726113.post@n5.nabble.com> Subject: Re: Possible bug with multicast shareUnitOfWork MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Corrected typo error Hi Willem We are getting the OOM memory error in our production environment due to the lot of stuck threads. while analyzed the code we found that one of the camel route which is using the mulitcast is the reason for the stuck thread.This is intermittent issue . Please find the below code snippet which we used for multi casting.(making the two parallel web service call) Camel version:2.10.3 Please find the below two logs: Logs which is causing the stuck thread: 30 Jun 2014 15:10:42,823 ********** [] [14.01] ERROR [Camel (camel-1) thread #7 - Multicast] invokeCentury - inside century route Log which is working fine: 30 Jun 2014 15:10:58,105 *************** [] [14.01] ERROR [Camel (camel-1) thread #2 - Multicast] invokeCentury - inside century route 30 Jun 2014 15:10:58,105 ************** [14.01] ERROR [Camel (camel-1) thread #5 - Multicast] invokeWBServices - inside wb route Here is my questions: 1)we are using the default camel thread pool for the making the two synchronous calls and not customizing the default thread pool.do we need to make any change in the above code to customize the thread pool setting(like min pool size max.pool size etc). 2) what will happen to worked thread if we did n't get any response from the external system . Thread pool terminate the worked thread or we need to handle it in our code. It would be great if you provide some suggestion on the above issue. Please let me know if you need any additional details. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Possible-bug-with-multicast-shareUnitOfWork-tp5726103p5753468.html Sent from the Camel - Users mailing list archive at Nabble.com.