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 909A3200C68 for ; Wed, 3 May 2017 15:52:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F2DB160BB5; Wed, 3 May 2017 13:52:49 +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 DB48B160BAA for ; Wed, 3 May 2017 15:52:48 +0200 (CEST) Received: (qmail 30604 invoked by uid 500); 3 May 2017 13:52:45 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 30594 invoked by uid 99); 3 May 2017 13:52:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 13:52:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 452591A7B3E for ; Wed, 3 May 2017 13:52:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.129 X-Spam-Level: ** X-Spam-Status: No, score=2.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id A0LBZucKJY1P for ; Wed, 3 May 2017 13:52:43 +0000 (UTC) Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A82885FDA5 for ; Wed, 3 May 2017 13:52:40 +0000 (UTC) Received: by mail-ua0-f169.google.com with SMTP id e55so72130902uaa.2 for ; Wed, 03 May 2017 06:52:40 -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=7BodjkEpyZKx1nPAov484QEky8HbwsvR766+a/Eu0H0=; b=GwB1TaEZSPd9AYK+W7yDztC9AYZqqUbcBNA3VIdYCEvRadXexFRl0QnzEEyrz33QVz qAWDNOtSQStOcpAh8c0fJrrZlfPYUrCUgiJez0tXsi6nDBogTV0Ns+gyARcgVzX+0wgu MdqfBEqOg6JpRgyPlaFXBJTk81SzrJZwKFyp5rA3D7vXBolkX2WVoANx0FCeP+CVWukf eUPs0lUk7QPQSPGifrdcFTOQNnNjRP0L+UASOremYxPzBu6CDXSAdZURUg/lS37syatF BQb/AaHutzg0UXCYUo0SvHM0VxHgqhd9+GZynPooLhm4e/blXw+moK+lGQdsHDFPXaq3 XAMQ== 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=7BodjkEpyZKx1nPAov484QEky8HbwsvR766+a/Eu0H0=; b=AAG2STHmpzxJf9yiGFsxV7ig40DWNWGiXyrgQ6pCtg4Q7+IxBoAWDQ6GStMt2FrQLb V4ZM2XtdSVKStX9ACIM27XdWZoPW8tAVQgL+pr3J9WVkatXg8OkAaEr9pKkBAhni/Ajg BZ94RvP1dsbsKA0D/VXIjxo2Tb/QTDhU8uxERqa66S2hpuaxnHuDuSFqAHzLpegnW57P pJV6s5qZTsr8T3bwX+3o6Fmd7au4YM2xEpCQlZE8pB+zDKseb79pWhqLOsPQ2zCcD8wT 7ZLZYrQPmcICBuw8mSpALzXNZGpWpjbdpikigymXM6EmNA7sjqEhzaqRqjKiIZdh0tTC 62tg== X-Gm-Message-State: AN3rC/4TKk256x2N5HxA8fZaTh5P9TwihDIQ0bAtVrUQm6zF/6fgrIg8 HYBStcoAoFAA+NMT94xUYGWROHyB7FNQ X-Received: by 10.159.36.76 with SMTP id 70mr4863287uaq.23.1493819559443; Wed, 03 May 2017 06:52:39 -0700 (PDT) MIME-Version: 1.0 From: Anshul Rathore Date: Wed, 03 May 2017 13:52:29 +0000 Message-ID: Subject: Prepared Statement Preloading in Cassandra To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113cfe98330a38054e9ef880 archived-at: Wed, 03 May 2017 13:52:49 -0000 --001a113cfe98330a38054e9ef880 Content-Type: text/plain; charset=UTF-8 Hi We are using Cassandra 3.10 version, one of the issue we encounter on restart of a node is cassandra either gives Out of Memory error or goes into GC cycle. Able to identify the cause that in newer versions cassandra is preloading all the prepared statements and we have one table which has around 200 columns , and not all values are set all the time, so there are lot of prepared statements stored in system keyspace, so on startup it tries to load all and not able to. Temporary fix we are doing is truncating prepared statements table before restart. Any thoughts on how to fix this ? Thanks Anshul --001a113cfe98330a38054e9ef880 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi

We are using= Cassandra 3.10 version, one of the issue we encounter on restart of a node= is cassandra either gives Out of Memory error or goes into GC cycle.

Able to identify the cause that in newer versions cassandra is prelo= ading all the prepared statements and we have one table which has around 20= 0 columns , and not all values are set all the time, so there are lot of pr= epared statements stored in system keyspace, so on startup it tries to load= all and not able to.=C2=A0

Temporary fix we are doing is trunc= ating prepared statements table before restart. Any thoughts on how to fix = this ?

<= font color=3D"#333333">Thanks
Ansh= ul
--001a113cfe98330a38054e9ef880--