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 B647D73F4 for ; Thu, 1 Dec 2011 14:25:55 +0000 (UTC) Received: (qmail 17517 invoked by uid 500); 1 Dec 2011 14:25:55 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 17473 invoked by uid 500); 1 Dec 2011 14:25:55 -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 17465 invoked by uid 99); 1 Dec 2011 14:25:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 14:25:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of uimaee@gmail.com designates 209.85.161.47 as permitted sender) Received: from [209.85.161.47] (HELO mail-fx0-f47.google.com) (209.85.161.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 14:25:50 +0000 Received: by faaa19 with SMTP id a19so1165993faa.6 for ; Thu, 01 Dec 2011 06:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2cuTQzHas3rp5SZ/3kIQMlI2WTcKEeEKh3RnOPSHV90=; b=O8ta4HqFHnsiRtJlxAjm3i6Z5wJ8u99KnFHwq2gmsws0Odh197idZRU+Mogbh6Ajoy JDU5uMAIUbqLuofZgX/PO8OjdgqnAdQwiOsF2mxRZwVSYjPUzN5DLc3q41h1m6exSF90 B2Y13hYX2C5LaPsFYcT6u9wE7u6Ia69cFmrD0= MIME-Version: 1.0 Received: by 10.204.145.89 with SMTP id c25mr7621701bkv.35.1322749528393; Thu, 01 Dec 2011 06:25:28 -0800 (PST) Received: by 10.223.118.209 with HTTP; Thu, 1 Dec 2011 06:25:28 -0800 (PST) In-Reply-To: References: Date: Thu, 1 Dec 2011 09:25:28 -0500 Message-ID: Subject: Re: UIMA AS: Lost Connection to Broker From: Jaroslaw Cwiklik To: user@uima.apache.org Content-Type: multipart/alternative; boundary=00151759341cc447b204b3089fa5 --00151759341cc447b204b3089fa5 Content-Type: text/plain; charset=ISO-8859-1 Did UIMA AS process ran out of memory? Do you have jvm dump file to examine the memory leak? If you dont, force the OOM by reducing memory for the UIMA AS process and use a tool like heapAnalyzer to find the memory leak: https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=4544bafe-c7a2-455f-9d43-eb866ea60091 Jerry On Thu, Dec 1, 2011 at 12:25 AM, Meghana wrote: > Hi Jerry, > > After last night's run, the ActiveMQ broker has consumed barely > 50-60MB of RAM (in JConsole), whereas the AS has used all of its > allocated RAM (2GB). If I only restart the AS (not the broker), it > works just fine! > > Thanks, > > ..meghana > > On 30 November 2011 20:28, Meghana wrote: > > Hi Jerry, > > > > Yeah, its the default 256M, will try increasing it. The strange thing > > is, restarting the broker makes no difference; the AS remains > > unresponsive. However, if i also restart the AS, then things flow as > > normal. > > > > Could this be because i'm using a 2.4.0 snapshot build instead of a > > stable release? > > > > Thanks, > > > > ..meghana > > > > > > > > On 30 November 2011 20:08, Jaroslaw Cwiklik wrote: > >> Meghana, what is your broker's -Xmx setting? On linux, > >> grep ACTIVEMQ_HOME/bin/activemq for ACTIVEMQ_OPTS_MEMORY. If you are > >> running with a default setting (256M) perhaps you need to increase the > >> memory. > >> > >> Jerry > >> > >> On Mon, Nov 28, 2011 at 11:55 PM, Meghana < > meghana.marathe@germinait.com>wrote: > >> > >>> Hi, > >>> > >>> I have an aggregate AE deployed as an AS with a remote primitive. Both > >>> have their queues at the same broker. Clients send requests to the > >>> aggregate using the sendCAS() method. We use the default 5.4.1 > >>> ActiveMQ version and configuration distributed with UIMA AS. The AS's > >>> CAS pool size is 2, and so is the client's. > >>> > >>> After working fine for ~10 hours, the AS listener received 25 > >>> exceptions of the following form from its collocated delegates: > >>> 2011-11-29 01:54:55,124 ERROR as.AsListener: > >>> org.apache.uima.aae.error.UimaAsDelegateException: ----> > >>> Controller:/AnalysisAggregator Received Exception on > >>> CAS:61b4719b:133ebbc4eb3:-7fd9 From Delegate:APAnnotator : > >>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel : 870 > >>> > >>> Then, the AS started returning all CASes with status failed, with the > >>> following logs: > >>> Nov 29, 2011 2:41:25 AM org.apache.uima.aae.delegate.Delegate$1 > >>> Delegate.TimerTask.run > >>> WARNING: Timeout While Waiting For Reply From Delegate:q_async_ae > >>> Process CAS Request Timed Out. Configured Reply Window Of 1,200,000. > >>> Cas Reference Id:-3c5bfde0:133ebe967b3:-7fe6 > >>> Nov 29, 2011 2:41:25 AM > >>> org.apache.uima.adapter.jms.client.ClientServiceDelegate handleError > >>> WARNING: Process Timeout - Uima AS Client Didn't Receive Process Reply > >>> Within Configured Window Of:1,200,000 millis > >>> Nov 29, 2011 2:41:25 AM > >>> > org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl > >>> notifyOnTimout > >>> WARNING: Request To Process Cas Has Timed-out. Service > >>> Queue:q_async_ae. Cas Timed-out on host: 192.168.0.121 > >>> Nov 29, 2011 2:41:25 AM > >>> org.apache.uima.adapter.jms.client.ActiveMQMessageSender run > >>> INFO: UIMA AS Client Message Dispatcher Sending GetMeta Ping To the > Service > >>> Nov 29, 2011 2:41:25 AM > >>> > org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl > >>> sendCAS > >>> INFO: Uima AS Client Sent PING Message To Service: q_async_ae > >>> Nov 29, 2011 2:41:25 AM > >>> > org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl > >>> handleException > >>> INFO: Received Exception In Message From:UimaASClient Cas > >>> Identifier:-3c5bfde0:133ebe967b3:-7fe3 > >>> Exception:org.apache.uima.jms.error.handler.BrokerConnectionException: > >>> Unable To Deliver CAS:-3c5bfde0:133ebe967b3:-7fe3 To Destination. > >>> Connection To Broker tcp://broker_url:61616 Has Been Lost > >>> > >>> The remote delegate hasn't logged any errors, and the broker "seems" > >>> to be up, but it has a few of these in its log: > >>> 2011-11-29 02:13:33,279 [168.0.121:49414] INFO Transport - Transport > >>> failed: java.net.SocketException: Connection reset > >>> java.net.SocketException: Connection reset > >>> at java.net.SocketInputStream.read(SocketInputStream.java:168) > >>> at > >>> > org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(TcpBufferedInputStream.java:50) > >>> at > >>> > org.apache.activemq.transport.tcp.TcpTransport$2.fill(TcpTransport.java:575) > >>> at > >>> > org.apache.activemq.transport.tcp.TcpBufferedInputStream.read(TcpBufferedInputStream.java:58) > >>> at > >>> > org.apache.activemq.transport.tcp.TcpTransport$2.read(TcpTransport.java:560) > >>> at java.io.DataInputStream.readInt(DataInputStream.java:370) > >>> at > >>> > org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269) > >>> at > >>> > org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:226) > >>> at > >>> > org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:218) > >>> at > >>> > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:201) > >>> at java.lang.Thread.run(Thread.java:619) > >>> > >>> What could be the problem here? Should i update the ActiveMQ distro? > >>> They have retracted the 5.4.1 release due to the bug at > >>> https://issues.apache.org/jira/browse/AMQ-3491 and recommend using > >>> 5.4.3 instead. > >>> > >>> Thanks a lot, > >>> > >>> ..meghana > >>> > >> > > > --00151759341cc447b204b3089fa5--