Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 69890 invoked from network); 17 Feb 2011 20:30:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2011 20:30:33 -0000 Received: (qmail 2563 invoked by uid 500); 17 Feb 2011 20:30:28 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 2358 invoked by uid 500); 17 Feb 2011 20:30:28 -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 2334 invoked by uid 99); 17 Feb 2011 20:30:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 20:30:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a83.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 20:30:22 +0000 Received: from homiemail-a83.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a83.g.dreamhost.com (Postfix) with ESMTP id E38155E06D for ; Thu, 17 Feb 2011 12:30:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=to:from :subject:date:message-id:content-type:mime-version:in-reply-to; q=dns; s=thelastpickle.com; b=Ub3rJnwr/HiI7o9IbYHzyjmYpO2oFSs2o cpdelrEGoR/iiqCLTqZzgaew5ZReseQ/s76Rv0IgKBs2tUqwfzkc3OnPFKqbQsNI Ys2PDepEb0tmvSFHulj+xHXgaFOw+fq9hEL9wPk0jNb1Ksxhkrb8ULz3cYrbBQ8m FzupCKJHm0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=to :from:subject:date:message-id:content-type:mime-version: in-reply-to; s=thelastpickle.com; bh=pLwB53IaUN+2VXxzav806CMJqhU =; b=eYm1nQip4pKVXlKte0ShSu9WTZ6L5Z/7US/lWbX5a0OnmZNhS0hpR5mroQd 6ubcZorLXm5hSAkLzxB8fHegt9YwVh1m4jEZWe8JFfP53pm5ukgNSjB7pKWBRy8S t7F3QLjavHG79URTlhUP8jz6N9LqgjKTzcLwv/lp3jv9BALY= Received: from localhost (webms.mac.com [17.148.16.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a83.g.dreamhost.com (Postfix) with ESMTPSA id C6F4A5E06C for ; Thu, 17 Feb 2011 12:30:01 -0800 (PST) To: user@cassandra.apache.org From: Aaron Morton Subject: Re: memory consuption Date: Thu, 17 Feb 2011 20:30:00 GMT X-Mailer: MobileMe Mail (1C3224) Message-id: Content-Type: multipart/alternative; boundary=Apple-Webmail-42--04018aac-dc79-62a7-b7e6-9a892bf2b7e2 MIME-Version: 1.0 In-Reply-To: --Apple-Webmail-42--04018aac-dc79-62a7-b7e6-9a892bf2b7e2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed bin/cassandra.in.sh=A0=0Aset Xms and Xmx in the JVM_OPTS=0A=0AAaron=0A=0AO= n 18 Feb, 2011,at 09:10 AM, Victor Kabdebon wr= ote:=0A=0AIs it possible to change the maximum JVM heap memory use in 0.6.= X ?=0A=0A2011/2/17 Aaron Morton =0AWhat are you u= sing for disk_access_mode ?=0AHave you tried reducing the JVM head size?=0A= Have you added the Jna.jar file to lib/ ? This will allow Cassandra to loc= k the JVM memory.=0A=0A=0AAaron=0A=0A=0A=0AOn 17/02/2011, at 9:20 PM, rusl= an usifov wrote:=0A=0A=0A=0A=0A=0A2011/2/16 Aaro= n Morton =0AJVM heap memory is controlled by the = settings in conf/Cassandra-env.sh=0A=0AMemory mapped files will use additi= onal virtual memory, is controlled in conf/Cassandra.yaml disk_access_mode= =0A=0A=0AAnd??? JVM memory heap in cassandra 0.7 is by default half of mem= ory is system in my case 4GB, here is a part of cassandra-env.sh:=0A=0Acal= culate_heap_size()=0A{=0A=A0=A0=A0 case "`uname`" in=0A=A0=A0=A0=A0=A0=A0=A0= Linux)=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 system_memory_in_mb=3D`free -m= | awk '/Mem:/ {print $2}'`=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 MAX_HEAP_S= IZE=3D$((system_memory_in_mb / 2))M=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 re= turn 0=0A=A0=A0=A0=A0=A0=A0=A0 ;;=0A=A0=A0=A0=A0=A0=A0=A0 FreeBSD)=0A=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 system_memory_in_bytes=3D`sysctl hw.physmem | = awk '{print $2}'`=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 MAX_HEAP_SIZE=3D$((s= ystem_memory_in_bytes / 1024 / 1024 / 2))M=0A=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 return 0=0A=A0=A0=A0=A0=A0=A0=A0 ;;=0A=A0=A0=A0=A0=A0=A0=A0 *)=0A=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 MAX_HEAP_SIZE=3D1024M=0A=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 return 1=0A=A0=A0=A0=A0=A0=A0=A0 ;;=0A=A0=A0=A0 esac=0A}=0A=0A=0A= =0AI set all this options by default. All my nodes have 8GB of memory. And= i affraid that after some time all my nodes goes to hard swap, and only r= eboot help them :-(((=0A=0APS: as i understand that down sometime of cassa= ndra is normal?=0A=0A --Apple-Webmail-42--04018aac-dc79-62a7-b7e6-9a892bf2b7e2 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--04018aac-dc79-62a7-b7e6-9a892bf2b7e2 --Apple-Webmail-86--04018aac-dc79-62a7-b7e6-9a892bf2b7e2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1;
bin/cassandra.in.sh 
set Xms and Xmx in the JVM_OPTS

Aaron

On 18 Feb, 2011,at 09:10 AM, Victor K= abdebon <victor.kabdebon@gmail.com> wrote:

Is it possible to change the m= aximum JVM heap memory use in 0.6.X ?

20= 11/2/17 Aaron Morton <aaron@thelastpick= le.com>
=0A=0A
<= div>
What are you using for disk_access_mode ?
Have you trie= d reducing the JVM head size?
=0A=0A
Have you added the Jna.jar f= ile to lib/ ? This will allow Cassandra to lock the JVM memory.
=

Aaron

<= br>
On 17/02/2011, at 9:20 PM, ruslan usifov <ruslan.u= sifov@gmail.com> wrote:
=0A=0A


2011/2/16 Aaron Morton = <aaron@thelastpickle.com>=
=0A=0A
=0AJVM heap memory is controlled by the settings in conf/Cassandra-e= nv.sh
=0A
=0AMemory mapped files will use additional virtual memory,= is controlled in conf/Cassandra.yaml disk_access_mode
=0A

And??? JVM memory heap in cass= andra 0.7 is by default half of memory is system in my case 4GB, here is a= part of cassandra-env.sh:

calculate_heap_size()
{
=0A=0A=0A&= nbsp;   case "`uname`" in
      = ;  Linux)
         &n= bsp;  system_memory_in_mb=3D`free -m | awk '/Mem:/ {print $2}'`
&n= bsp;           MAX_HEAP_= SIZE=3D$((system_memory_in_mb / 2))M
     &nbs= p;      return 0
     = ;   ;;
=0A=0A=0A        Fr= eeBSD)
          &nbs= p; system_memory_in_bytes=3D`sysctl hw.physmem | awk '{print $2}'`
&nbs= p;           MAX_HEAP_SI= ZE=3D$((system_memory_in_bytes / 1024 / 1024 / 2))M
   &= nbsp;        return 0
  &n= bsp;     ;;
      &nb= sp; *)
=0A=0A=0A         &= nbsp;  MAX_HEAP_SIZE=3D1024M
      &= nbsp;     return 1
     &n= bsp;  ;;
    esac
}



I set all thi= s options by default. All my nodes have 8GB of memory. And i affraid that = after some time all my nodes goes to hard swap, and only reboot help them = :-(((
=0A=0A=0A
PS: as i understand that down sometime of cassandra = is normal?
=0A
<= br>=0A
--Apple-Webmail-86--04018aac-dc79-62a7-b7e6-9a892bf2b7e2-- --Apple-Webmail-42--04018aac-dc79-62a7-b7e6-9a892bf2b7e2--