Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 51294 invoked from network); 15 Sep 2010 15:19:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Sep 2010 15:19:16 -0000 Received: (qmail 54653 invoked by uid 500); 15 Sep 2010 15:19:15 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 54368 invoked by uid 500); 15 Sep 2010 15:19:14 -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 53880 invoked by uid 99); 15 Sep 2010 15:19:14 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 15:19:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 15:18:56 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8FFIZod006641 for ; Wed, 15 Sep 2010 15:18:35 GMT Message-ID: <26024727.205031284563915222.JavaMail.jira@thor> Date: Wed, 15 Sep 2010 11:18:35 -0400 (EDT) From: "Hudson (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1469) adaptive default heap size In-Reply-To: <28076944.28281283614233176.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909765#action_12909765 ] Hudson commented on CASSANDRA-1469: ----------------------------------- Integrated in Cassandra #536 (See [https://hudson.apache.org/hudson/job/Cassandra/536/]) Adaptively set the heap size and memtable thresholds at runtime. Patch by brandonwilliams, reviewed by jbellis for CASSANDRA-1469 > adaptive default heap size > -------------------------- > > Key: CASSANDRA-1469 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1469 > Project: Cassandra > Issue Type: New Feature > Components: Packaging > Reporter: Jonathan Ellis > Assignee: Brandon Williams > Fix For: 0.7.0 > > Attachments: 0001_adaptively_determine_heap_size.txt, 0002_determine_memtable_thresholds_at_runtime.txt > > > Cassandra comes out of the box with very conservative defaults, especially in -Xmx and memtable sizes, which leads to complaints of poor performance or even OOM conditions under heavy load. But changing these to be aggressive can cause the same problem: most servers enable swap out of the box, so asking for a 4GB or 8GB heap could allocate happily but also cause problems when it starts paging. > Proposed solution is to update the start script to set Xmx to half of system ram ("free -m | awk '/Mem:/ {print $2}'"). Memtable defaults will have to be handled by Java, but we can do that based on heap size (Runtime.maxMemory). > An alternative suggestion was to provide "small", "medium", "large" configurations, but this plays poorly with rpm and deb packages. I think the adaptive approach is more promising. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.