Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0693017768 for ; Tue, 9 Jun 2015 10:58:10 +0000 (UTC) Received: (qmail 5005 invoked by uid 500); 9 Jun 2015 10:58:06 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 4963 invoked by uid 500); 9 Jun 2015 10:58:06 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 4952 invoked by uid 99); 9 Jun 2015 10:58:06 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 10:58:06 +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 70C431A4796 for ; Tue, 9 Jun 2015 10:58:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.213 X-Spam-Level: ***** X-Spam-Status: No, score=5.213 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LIVE=1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IEfrrL_Xvokh for ; Tue, 9 Jun 2015 10:57:54 +0000 (UTC) Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C2B7A27634 for ; Tue, 9 Jun 2015 10:57:53 +0000 (UTC) Received: by igblz2 with SMTP id lz2so8329208igb.1 for ; Tue, 09 Jun 2015 03:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6TOHtDd2gbZhjnrqiYxe8fNdKVw3UWc61cSv7ye9pdo=; b=toU4i1tVTvOSTiBRtd334xKyUD+e736wo8xuQdMGBpPghs46EE4eC1Efv2I3ejUjqU 5eKR/AuXmDMMB75DTD4MGjcKSNYLJiShMftS6ieOhuJtKYWFHgxCm2QX7fWp9kKmmDsr 9I7XZob3fsoi7YXHboRKXJgc9oe+NENAX8Da431UrQZiUt0RMhKhrH1c1NxSQWluRYLg AC2UYFa6Ta9bkPf3GcCjqRJCBDXPTVFRdjN45ng3LWEB1ZeUXK+6GNDYH8ZrWBLvvx7Z MOBsOFafXlLbSW1hHjjTL7YWmUZIQAyoB/yzL/R/n7b64ffXBTDRqt8oFLVtGCv9JXiN 6prw== MIME-Version: 1.0 X-Received: by 10.50.143.104 with SMTP id sd8mr19213114igb.14.1433847473256; Tue, 09 Jun 2015 03:57:53 -0700 (PDT) Received: by 10.36.66.12 with HTTP; Tue, 9 Jun 2015 03:57:53 -0700 (PDT) In-Reply-To: References: <20150609105921.178b9417@fujitsu> Date: Tue, 9 Jun 2015 12:57:53 +0200 Message-ID: Subject: Re: How to minimize Cassandra memory usage for test environment? From: horschi To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a1135f1a64e3f7b051813a10b --001a1135f1a64e3f7b051813a10b Content-Type: text/plain; charset=UTF-8 Hi Eax, are you truncating/dropping tables between tests? Are your issues perhaps related to that? If you are, you should disable autoSnapshots and enable -DunsafeSystem=true to make it run smoother. kind regards, Christian On Tue, Jun 9, 2015 at 11:25 AM, Jason Wee wrote: > for a start, maybe you can see the setting use by raspberry pi project, > for instance > http://ac31004.blogspot.com/2012/05/apache-cassandra-on-raspberry-pi.html > > you can look at these two files, to tune down the settings for test > environment. > cassandra-env.sh > cassandra.yaml > > hth > > jason > > On Tue, Jun 9, 2015 at 3:59 PM, Eax Melanhovich wrote: > >> Hello. >> >> We are running integration tests, using real Cassandra (not a mock) >> under Vagrant. MAX_HEAP_SIZE is set to 500M. As I discovered, lower >> value causes 'out of memory' after some time. >> >> Could memory usage be decreased somehow? Developers don't usually have >> a lot of free RAM and performance obviously is not an issue in this >> case. >> >> -- >> Best regards, >> Eax Melanhovich >> http://eax.me/ >> > > --001a1135f1a64e3f7b051813a10b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Eax,

are you truncating/dropping tab= les between tests? Are your issues perhaps related to that?

<= /div>
If you are, you should disable autoSnapshots and enable -DunsafeS= ystem=3Dtrue to make it run smoother.

kind reg= ards,
Christian

On Tue, Jun 9, 2015 at 11:25 AM, Jason Wee <peichieh@= gmail.com> wrote:
for a start, maybe you can see the setting use by raspberry pi pro= ject, for instance=C2=A0http://ac31004.blogspo= t.com/2012/05/apache-cassandra-on-raspberry-pi.html =C2=A0
you can = look at these two files, to tune down the settings for test environment.
cassandra-env.sh=C2=A0
cassandra.yaml

<= /div>
hth

=
jason

On Tue, J= un 9, 2015 at 3:59 PM, Eax Melanhovich <mail@eax.me> wrote:
Hello.

We are running integration tests, using real Cassandra (not a mock)
under Vagrant. MAX_HEAP_SIZE is set to 500M. As I discovered, lower
value causes 'out of memory' after some time.

Could memory usage be decreased somehow? Developers don't usually have<= br> a lot of free RAM and performance obviously is not an issue in this
case.

--
Best regards,
Eax Melanhovich
http://eax.me/


--001a1135f1a64e3f7b051813a10b--