Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 645179199 for ; Wed, 1 Feb 2012 14:46:32 +0000 (UTC) Received: (qmail 30901 invoked by uid 500); 1 Feb 2012 14:46:32 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 30797 invoked by uid 500); 1 Feb 2012 14:46:30 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 30789 invoked by uid 99); 1 Feb 2012 14:46:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 14:46:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msa@schor.com designates 67.18.7.5 as permitted sender) Received: from [67.18.7.5] (HELO gateway12.websitewelcome.com) (67.18.7.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 14:46:20 +0000 Received: by gateway12.websitewelcome.com (Postfix, from userid 5007) id 920A7ADE95468; Wed, 1 Feb 2012 08:45:58 -0600 (CST) Received: from gator74.hostgator.com (gator74.hostgator.com [184.173.199.208]) by gateway12.websitewelcome.com (Postfix) with ESMTP id 7AFC8ADE95406 for ; Wed, 1 Feb 2012 08:45:58 -0600 (CST) Received: from [129.34.20.19] (port=48781 helo=[9.2.34.182]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1RsbRe-0005s7-3S for user@uima.apache.org; Wed, 01 Feb 2012 08:45:58 -0600 Message-ID: <4F29501F.4080602@schor.com> Date: Wed, 01 Feb 2012 09:45:51 -0500 From: Marshall Schor User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: UimaAsynchronousEngine client poor performance when the pipeline is slow processing the CAS References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: yktgi01e0-s5.watson.ibm.com ([9.2.34.182]) [129.34.20.19]:48781 X-Source-Auth: msa+schor.com X-Email-Count: 1 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yNzQuaG9zdGdhdG9yLmNvbQ== X-Virus-Checked: Checked by ClamAV on apache.org Are you following the examples in http://uima.apache.org/downloads/releaseDocs/2.3.0-incubating/docs-uima-as/html/uima_async_scaleout/uima_async_scaleout.html#ugr.ref.async.api.usage You may be limited by the size of the CAS pool (see the example code for how to set this). -Marshall On 2/1/2012 5:11 AM, Spico Florin wrote: > Hello! > I have application client that is receiving messages from a Queue via JMS. > The message is then packed in a JCas and sent to the UIMA AS pipeline via > UimaAsynchronousEngine. > If the UIMA AS pipeline processing is slow then it impacts the client in > the way that the received messages from the > Queue will not be sent as they arrived. I'm using sendCAS(CAS) method of > UimaAsynchronousEngine, thus the call to pipeline should be asynchronous > (as specfied in the spec). > In my opinion the described behavior is not as expected (i.e. the client > should not be affected by the UIMA pipeline performance and > it should send the received messages for processing right away, without > waiting some responses). > My questions are: > 1. I suspect, that my client is somehow waiting the response from the > pipeline. Is there any way to disable the response feature? > 2. I'm using a thread pool executor that is sending the messages to UIMA > pipeline. Is this a good approach? > 3. How to design my client in order to send the messages to the pipeline > without concerning the pipeline performance? > > I look forward for your answers and advices. > Thank you. > Best regards, > > Florin >