Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 35155 invoked from network); 31 Aug 2010 02:59:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Aug 2010 02:59:36 -0000 Received: (qmail 86504 invoked by uid 500); 31 Aug 2010 02:59:36 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 86405 invoked by uid 500); 31 Aug 2010 02:59: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 86397 invoked by uid 99); 31 Aug 2010 02:59:34 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 02:59:34 +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; Tue, 31 Aug 2010 02:59:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7V2wskZ016536 for ; Tue, 31 Aug 2010 02:58:54 GMT Message-ID: <2193830.85761283223534644.JavaMail.jira@thor> Date: Mon, 30 Aug 2010 22:58:54 -0400 (EDT) From: "Eric Evans (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1446) cassandra-cli still relies on cassandra.in.sh instead of cassandra-env.sh In-Reply-To: <5446175.79361283208475844.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-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904504#action_12904504 ] Eric Evans commented on CASSANDRA-1446: --------------------------------------- {quote} The specific problem I'm seeing here is that the user can launch cassandra itself, but doesn't have enough memory to launch cassandra-cli afterwards, and there isn't an intuitive way to change cassandra-cli's heap. {quote} Interesting. I would have thought the default max heap size would be something... reasonable, but on my machine it seems to be 987MB (the hell?!). Anyway, I just checked in a change that sets this to 256MB. I don't know if that's the optimal value but it's considerably less than the almost-a-gig default. The only reason it would ever need to be bigger than say 16MB is to buffer larger responses, and 256MB seems like a gracious plenty for any practical use of our CLI. {quote} I see cassandra-cli's script specifically trying to include cassandra.in.sh, though, on second look, it does not appear to be doing anything with it. Maybe we should just remove the cassandra.in.sh cruft. {quote} It is using it though, it's using it to setup the classpath; cassandra.in.sh is basically the common code for setting the classpath in all of those scripts. > cassandra-cli still relies on cassandra.in.sh instead of cassandra-env.sh > ------------------------------------------------------------------------- > > Key: CASSANDRA-1446 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1446 > Project: Cassandra > Issue Type: Bug > Affects Versions: 0.7 beta 1 > Reporter: Brandon Williams > Assignee: Eric Evans > Priority: Trivial > Fix For: 0.7 beta 2 > > > When we switched to cassandra-env.sh, we neglected to change the cli as well. This leads to people unable to launch to the client due to heap size, and not having any idea how to change the heap for the cli itself. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.