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 08745188D5 for ; Wed, 23 Dec 2015 16:58:47 +0000 (UTC) Received: (qmail 90735 invoked by uid 500); 23 Dec 2015 16:58:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 90656 invoked by uid 500); 23 Dec 2015 16:58:46 -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 90602 invoked by uid 99); 23 Dec 2015 16:58:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Dec 2015 16:58:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9CFDE2C1F55 for ; Wed, 23 Dec 2015 16:58:46 +0000 (UTC) Date: Wed, 23 Dec 2015 16:58:46 +0000 (UTC) From: "Paulo Motta (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-10930) Limit off-heap memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Paulo Motta created CASSANDRA-10930: --------------------------------------- Summary: Limit off-heap memory Key: CASSANDRA-10930 URL: https://issues.apache.org/jira/browse/CASSANDRA-10930 Project: Cassandra Issue Type: Improvement Components: Configuration Reporter: Paulo Motta Priority: Minor Fix For: 3.x It seems the default maximum off-heap memory varies according to the JVM version. For oracle hotspot, this defaults to the heap size, according to [this|https://terracotta.org/generated/4.3.1/html/bmg-all/index.html#page/bigmemory-go-webhelp/co-tiers_configuring_offheap_store.html] and [this|http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/55f6804b4352/src/share/classes/sun/misc/VM.java#l279]. This may cause oomkiller to kick in if max_mem <= 2*heap. Opening this ticket to discuss potentially limiting off-heap usage by default on {{cassandra-env.sh}} with the {{-XX:MaxDirectMemorySize}}, but I wouldn't know to which value. Or at least checking if max_mem > 2*heap. -- This message was sent by Atlassian JIRA (v6.3.4#6332)