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 2EEA16072 for ; Fri, 15 Jul 2011 10:17:34 +0000 (UTC) Received: (qmail 67662 invoked by uid 500); 15 Jul 2011 10:17:31 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 67193 invoked by uid 500); 15 Jul 2011 10:17:13 -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 67174 invoked by uid 99); 15 Jul 2011 10:17:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 10:17:11 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of octo47@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 10:17:05 +0000 Received: by vxi40 with SMTP id 40so1144700vxi.31 for ; Fri, 15 Jul 2011 03:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DDDlmXxvkoTFwemILcWhg3OIQ54hnj51DasmqSo5D/M=; b=T2MYtNfB/vzVIXkCKHIUu5pzXrOrhvemR6Ij87nSkr2SuE27pEg5hB3K32crApOawb rwhB6YxumWEyRTcckIfGM1RcT2YHv9irHwBJryR4WEaB8tv5pfv3ZRNSo/nJ+Gi9vlCA mDCP45CbdYBrOEIHHPKvPAKPajNe57IqHqHR0= Received: by 10.52.100.6 with SMTP id eu6mr3284869vdb.30.1310725004144; Fri, 15 Jul 2011 03:16:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.168.229 with HTTP; Fri, 15 Jul 2011 03:16:24 -0700 (PDT) In-Reply-To: <7DA4B654C7FEB24C9998EE4867BEE93EBEAC4E@CNMAIL12.cn.utstarcom.com> References: <7DA4B654C7FEB24C9998EE4867BEE93EBEAC4E@CNMAIL12.cn.utstarcom.com> From: Andrey Stepachev Date: Fri, 15 Jul 2011 14:16:24 +0400 Message-ID: Subject: Re: JNA to avoid swap but physical memory increase To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf3071c6bc452e6e04a818f269 --20cf3071c6bc452e6e04a818f269 Content-Type: text/plain; charset=UTF-8 Looks like mmaped files. 2011/7/15 Donna Li > ** > > All:**** > > I download JNA jar and put it to cassandra lib directory. When restart > cassandra server, I found the physical memory highly increase. There is no > data saved in cassandra, why so much memory used by cassandra? How can I > decrease the memory usage by cassandra? My version is 0.7.6-2.**** > > ** ** > > ** ** > > Before **** > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND **** > > 11381 root 25 0 **653m** **57m** 6272 S 0 5.7 0:02.33 > java **** > > ** ** > > After**** > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND **** > > 11130 root 25 0 **653m** **647m** **9.9m** S 0 64.2 0:03.57 > java **** > > ** ** > > ** ** > > Best Regards**** > > Donna li**** > --20cf3071c6bc452e6e04a818f269 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Looks like mmaped files.

2011/7/15 Donna = Li <donna.li@utstar.com>

All:

I download JNA jar and put it to cassandra lib directory. When restart cassandra server, I found the p= hysical memory highly increase. There is no data saved in cassandra, why so much me= mory used by cassandra? How can I decrease the memory usage by cassandra? My ver= sion is 0.7.6-2.

=C2=A0

=C2=A0

Before

PID USER=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 PR=C2=A0 NI=C2=A0 VIRT=C2=A0 RES=C2=A0 SHR S %CPU %MEM=C2=A0=C2=A0=C2=A0 TIME+=C2=A0 COMMAND=C2=A0 <= /span>

11381 root=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 25=C2=A0=C2=A0 0 =C2=A0653m=C2=A0 57m 6272 S=C2=A0=C2=A0=C2=A0= 0=C2=A0 5.7=C2=A0=C2=A0 0:02.33 java=C2=A0=C2=A0=C2=A0=C2=A0 <= /font>

=C2=A0

After

PID USER=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 PR=C2=A0 NI=C2=A0 VIRT=C2=A0 RES=C2=A0 SHR S %CPU %MEM=C2=A0=C2=A0=C2=A0 TIME+=C2=A0 COMMAND=C2=A0 <= /span>

11130 root=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 25=C2=A0=C2=A0 0=C2=A0 653m 647m 9.9m S=C2=A0=C2=A0=C2=A0 0 64.2=C2=A0=C2=A0 0:03.57 java=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

=C2=A0

=C2=A0

Best Regards

Donna li<= /font>


--20cf3071c6bc452e6e04a818f269--