Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F2492200B59 for ; Mon, 8 Aug 2016 15:32:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F0C87160A91; Mon, 8 Aug 2016 13:32:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 41BD6160A77 for ; Mon, 8 Aug 2016 15:32:16 +0200 (CEST) Received: (qmail 70124 invoked by uid 500); 8 Aug 2016 13:32:10 -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 70112 invoked by uid 99); 8 Aug 2016 13:32:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 13:32:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BC06AC0362 for ; Mon, 8 Aug 2016 13:32:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.425 X-Spam-Level: X-Spam-Status: No, score=-5.425 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.426, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KIm-s6o3itS1 for ; Mon, 8 Aug 2016 13:32:06 +0000 (UTC) Received: from m3-bln.bund.de (m3-bln.bund.de [77.87.224.107]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 13EE86125A for ; Mon, 8 Aug 2016 13:32:05 +0000 (UTC) Received: from m3.mfw.bln.ivbb.bund.de (localhost.mfw.bln.ivbb.bund.de [127.0.0.1]) by m3-bln.bund.de (8.14.5/8.14.5) with ESMTP id u78DVxjd014659 for ; Mon, 8 Aug 2016 15:31:59 +0200 (CEST) Received: (from localhost) by m3.mfw.bln.ivbb.bund.de (MSCAN) id 3/m3.mfw.bln.ivbb.bund.de/smtp-gw/mscan; Mon Aug 8 15:31:59 2016 X-P350-Id: 3d444e6110480888 From: To: Subject: AW: CPE memory usage Thread-Topic: CPE memory usage Thread-Index: AdHxOp4dSWla09CvTcyuufWE+lndZv//62CA///cijCAAIK3AP//0+Ug Date: Mon, 8 Aug 2016 13:31:54 +0000 Message-ID: References: In-Reply-To: Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="barc315ef1f2711f95b00b12a058e9a87bc"; micalg=pgp-sha1; protocol="application/pgp-signature" archived-at: Mon, 08 Aug 2016 13:32:17 -0000 --barc315ef1f2711f95b00b12a058e9a87bc Content-Language: de-DE Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Richard! I've changed the document reader to a kind of no-op-reader, that always set= s the document text to an empty string: same behavior, but much slower incr= ease in memory usage. Cheers, Armin -----Urspr=FCngliche Nachricht----- Von: Richard Eckart de Castilho [mailto:rec@apache.org]=20 Gesendet: Montag, 8. August 2016 14:31 An: user@uima.apache.org Betreff: Re: CPE memory usage I am not aware of any resource leaks in uimaFIT or UIMA-J either. Maybe Solr doesn't handle resources in the way you expect? E.g. queries or documents may have to be closed/returned when they are no longer needed. You could to generate a heap dump using JVisualVM to figure our what kind of objects are accumulating. Cheers, -- Richard > On 08.08.2016, at 09:22, Armin.Wegner@bka.bund.de wrote: >=20 > Hello Richard! >=20 > No, I can't change the reader. It's reading from Solr. The response docum= ents are put in a queue. The querying logic is done in hasNext(). hasNext()= returns true if the queue is not empty. If the queue is empty, hasNext() s= ends a request to Solr and puts the response documents in the empty queue. = If there are no more response documents from Solr, the queue remains empty = and the reader is done. getNext() pulls a document from the queue and sets = the CAS's document text. The number of documents returned from Solr can be = given as a parameter. Currently it's set to 1, that is one document per req= uest. The only fields of the reader class are the parameters and the docume= nt queue. All other variables are local to their methods. It's pretty simpl= e. There shouldn't be any resource leaks. >=20 > Best, > Armin >=20 > -----Urspr=FCngliche Nachricht----- > Von: Richard Eckart de Castilho [mailto:rec@apache.org]=20 > Gesendet: Montag, 8. August 2016 08:50 > An: user@uima.apache.org > Betreff: Re: CPE memory usage >=20 > Did you try using a different reader? >=20 > Cheers, >=20 > -- Richard >=20 >> On 08.08.2016, at 08:10, wrote: >>=20 >> Hi! >>=20 >> I'm using uimaFIT 2.2.0 and uimaj 2.8.1. The collectection processing en= gine is slowy eating up all memory until it gets killed by the system. This= happens even when I'm just runnging a collection reader and no other compo= ments (no analysis at all). Does anyone has experiented a similar behavior = or has any ideas? >>=20 >> Best, >> Armin >=20 --barc315ef1f2711f95b00b12a058e9a87bc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAABAgAGBQJXqInMAAoJEAk50sqYef+/iMoH/j1KFqaYnc9B5yAY2j+QECts fkISeMq8+bnpwk8Cn/HXH/2FHyt3vAvaXaVjzoTve2XzT0El30KdPjxhjzf+GJLz 3vau9eLm9HL4N57FWggqrcF7MiYGQfvnmxj2MMFtBx7VnGhz7Dt7PM9fNMS7AmXF JxNUn1LEyYqc+io1kDJLz+k3Qngl+B/0CprNRWtFyKZ29/dI1i2axvdro2lf5XJL KvXyob+J1Qe94yvwC0a5jZfrVXBMKjHFAGDTFzS5Cyelw1EBjBywG+cjYynKjkyG AvORjjuE5TVFcM7FyYZ3HKYKaGsh0venJYeef9ZvqdGcI9S/0yMyzmRkPWXTY94= =9SdD -----END PGP SIGNATURE----- --barc315ef1f2711f95b00b12a058e9a87bc--