Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDF3F17EAB for ; Fri, 3 Oct 2014 20:29:34 +0000 (UTC) Received: (qmail 37226 invoked by uid 500); 3 Oct 2014 20:29:34 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 37190 invoked by uid 500); 3 Oct 2014 20:29:34 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 37177 invoked by uid 99); 3 Oct 2014 20:29:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2014 20:29:34 +0000 Date: Fri, 3 Oct 2014 20:29:34 +0000 (UTC) From: "T Jake Luciani (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-7930) Warn when evicting prepared statements from cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158482#comment-14158482 ] T Jake Luciani commented on CASSANDRA-7930: ------------------------------------------- [~iamaleksey] Just added CASSANDRA-8055 > Warn when evicting prepared statements from cache > ------------------------------------------------- > > Key: CASSANDRA-7930 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7930 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Robbie Strickland > Assignee: Robbie Strickland > Labels: bootcamp, jmx > Fix For: 2.1.1 > > Attachments: cassandra-2.0-v2.txt, cassandra-2.0-v3.txt, cassandra-2.0-v4.txt, cassandra-2.0-v5.txt, cassandra-2.0-v6.txt, cassandra-2.0.txt, cassandra-2.1.txt > > > The prepared statement cache is an LRU, with a max size of maxMemory / 256. There is currently no warning when statements are evicted, which could be problematic if the user is unaware that this is happening. > At the very least, we should provide a JMX metric and possibly a log message indicating this is happening. At some point it may also be worthwhile to make this tunable for users with large numbers of statements. -- This message was sent by Atlassian JIRA (v6.3.4#6332)