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 A8606200C70 for ; Thu, 4 May 2017 20:26:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A707C160BB0; Thu, 4 May 2017 18:26:08 +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 01FB9160B9B for ; Thu, 4 May 2017 20:26:07 +0200 (CEST) Received: (qmail 27865 invoked by uid 500); 4 May 2017 18:26:07 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 27849 invoked by uid 99); 4 May 2017 18:26:07 -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; Thu, 04 May 2017 18:26:07 +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 8C3A7C0C07 for ; Thu, 4 May 2017 18:26:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-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 HwWdd7iFtMMA for ; Thu, 4 May 2017 18:26:04 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DC57B5F1BA for ; Thu, 4 May 2017 18:26:03 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id h4so12957837lfj.3 for ; Thu, 04 May 2017 11:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0Pd5aEy16Vf5fCYb7qs43kpWtHsrYnOm5ZYt/xLtCnY=; b=r/p2Tp/7BJYNSH9SggLjoPxmQu6CHks2HHBTMIqtshyOD79Fnu1pC6IEd8mBZA5mBy efKur1YwYeGsmCW2DvC18YUXnIGuDoadls0kXhiWs4LfiQEKTOXz9bfATfFCx2j7XWWg 6vFdqTDpKOwNY/L+HAM0dvudWEzMhOxI3p6qV8uKFGP/BvIyjEEyGbuHldK8G3XkshyF g0D8OTThuTpkPD7U/icO6/R6GCqD8TV7xX+6H9N9K2jkf4AO7xQiwmrnUWk2xH/llQcD 83AIsUHkaGcaExXkMzBdVrQaiE5RIE6cT9oK7PitMxROVirYU+D6E2Vpts5IvdpgwbPo a9yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0Pd5aEy16Vf5fCYb7qs43kpWtHsrYnOm5ZYt/xLtCnY=; b=VO6ZGSw1sZ9+S909ZkX+fJNfgHO0Q/Ah1DWf/J5i6X3firSvH/NTjxjxyjDtGB9ahP 1fPUhx3vCee7RA8DE4muE8nIv6uzIsHFC7KlfNLCnGo6WvvOGwA/2vp1FA2ONgPjVS+S E8LyP6GtL50923mpJJ55b39dm1oqFmv341RLq61aeAj95cR56EGEXCztPNsR2QSDOpqg OGqf276DTQ76BOaoWe++F4Q633rckPX7YlRdmbTRT/OVCXrtL94gtfziwOEcohdvcQyr uQ5fdbrCbDgZ5nQga0Lj9U5gKLBYkEcxunKFxvz8qZT1Kig6uTNoM2q858JFz6JF0S/n 2Yjg== X-Gm-Message-State: AN3rC/589kmEMgxQhc/XJd0a1CwuSd1g59W6QWFOJcZblXTCI8P+Vebr yNOGEpGv3FOyedNiiJT4pZDhhYcxk7jS3rs= X-Received: by 10.46.81.82 with SMTP id b18mr16488119lje.115.1493922357081; Thu, 04 May 2017 11:25:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.190.8 with HTTP; Thu, 4 May 2017 11:25:36 -0700 (PDT) From: Elias Levy Date: Thu, 4 May 2017 11:25:36 -0700 Message-ID: Subject: CEP memory requirements To: user@flink.apache.org Content-Type: multipart/alternative; boundary=f403045ffd286a7e6d054eb6e7ea archived-at: Thu, 04 May 2017 18:26:08 -0000 --f403045ffd286a7e6d054eb6e7ea Content-Type: text/plain; charset=UTF-8 I am observing odd memory behavior with the CEP library and I am wondering if it is expected. If I write a simple local streaming Flink job that reads from a 65MB compressed file of JSON objects, one per line, parses the JSON, performs a filter operation, and then a keyBy, heap usage is stable, staying below 250MB throughout per VisualVM. But if I create a CEP pattern that matches nothing (Pattern.begin[T]("foo").where( _ => false )) and match it against the stream produced by the last keyBy (CEP.pattern(stream, pattern).select), then memory balloons until the program terminates, steadily growing until 3GB. The VisualVM memory profiler appears unable to account for that used heap space. If I add the Live Bytes column I'd get only between 200-100 MB. Any idea what is going on? Flink 1.2. Java 8. --f403045ffd286a7e6d054eb6e7ea Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I am observing odd memory behavior with the CEP library an= d I am wondering if it is expected.

If I write a simple = local streaming Flink job that reads from a 65MB compressed file of JSON ob= jects, one per line, parses the JSON, performs a filter operation, and then= a keyBy, heap usage is stable, staying below 250MB throughout per VisualVM= .

But if I create a CEP pattern that matches nothi= ng (Pattern.begin[T]("foo").where( _ =3D> false )) and match i= t against the stream produced by the last keyBy (CEP.pattern(stream, patter= n).select), then memory balloons until the program terminates, steadily gro= wing until 3GB.

The VisualVM memory profiler appea= rs unable to account for that used heap space.=C2=A0 If I add the Live Byte= s column I'd get only between 200-100 MB.

Any = idea what is going on?

Flink 1.2.=C2=A0 Java 8.

--f403045ffd286a7e6d054eb6e7ea--