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 ACB7F9A32 for ; Mon, 20 Feb 2012 17:34:11 +0000 (UTC) Received: (qmail 91234 invoked by uid 500); 20 Feb 2012 17:34:09 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 91211 invoked by uid 500); 20 Feb 2012 17:34:09 -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 91202 invoked by uid 99); 20 Feb 2012 17:34:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 17:34:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adynnn@gmail.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-lpp01m010-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 17:34:01 +0000 Received: by lahl5 with SMTP id l5so7603430lah.31 for ; Mon, 20 Feb 2012 09:33:40 -0800 (PST) Received-SPF: pass (google.com: domain of adynnn@gmail.com designates 10.152.128.38 as permitted sender) client-ip=10.152.128.38; Authentication-Results: mr.google.com; spf=pass (google.com: domain of adynnn@gmail.com designates 10.152.128.38 as permitted sender) smtp.mail=adynnn@gmail.com; dkim=pass header.i=adynnn@gmail.com Received: from mr.google.com ([10.152.128.38]) by 10.152.128.38 with SMTP id nl6mr16301407lab.15.1329759220813 (num_hops = 1); Mon, 20 Feb 2012 09:33:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2r4AVgIoijGYsuW5S1DINO25XcH/+cYnv2mlzmuooWE=; b=rrKhF61psadzxJxYGrtzqmByqtw3/6k4gyf2ANK3gP6LIm0hfztgV0xswuixvDSGd1 pioJRUCVTQ1tepijxAcF0lbmg4uKedztHirirgzMu4Hc4P4HbiMhTaLR7itHr435eEVv /i/Ntz9elEbwqmzrltmW1PTWM9qzuCgUgv7M0= MIME-Version: 1.0 Received: by 10.152.128.38 with SMTP id nl6mr13538277lab.15.1329759220707; Mon, 20 Feb 2012 09:33:40 -0800 (PST) Received: by 10.112.19.169 with HTTP; Mon, 20 Feb 2012 09:33:40 -0800 (PST) In-Reply-To: <4F41E90C.1090606@tok-media.com> References: <383A2C9B-FEB9-40F9-B77B-06052658692A@gmail.com> <4F3FD93F.2070700@gmail.com> <4F41E90C.1090606@tok-media.com> Date: Mon, 20 Feb 2012 23:03:40 +0530 Message-ID: Subject: Re: Newbie Question: Cassandra consuming 100% CPU on ubuntu server From: Aditya Gupta To: user@cassandra.apache.org, tamar@tok-media.com Content-Type: multipart/alternative; boundary=f46d043086c0fcb30204b968b15a X-Virus-Checked: Checked by ClamAV on apache.org --f46d043086c0fcb30204b968b15a Content-Type: text/plain; charset=ISO-8859-1 @Tamar: Thanks a ton! works perfect now! On Mon, Feb 20, 2012 at 12:02 PM, Tamar Fraenkel wrote: > On 19/02/2012 21:55, Aditya Gupta wrote: > > Is there anything to do with running cassandra on a VMware ubuntu instance > !? I am trying Cassandra on VMware ubuntu server instance. > > I am doing that for the past couple of weeks both on VMWare player and on > ESXi in development and it works fine. > My Ubuntu is 11.10, cassandra 1.0.7. > I followed the directions in datastax site for installation. > Tamar > > > On Sun, Feb 19, 2012 at 2:45 AM, Aditya Gupta wrote: > >> In my case, after installing cassandra, as soon as the server is started >> it hangs on it own (totally unresponsive). >> >> It had openJDK-6's jdk & jre implementations. >> >> >> On Sat, Feb 18, 2012 at 10:30 PM, Guy Incognito wrote: >> >>> perhaps entirely unrelated, but somebody was asking about lockups on >>> EC2 yesterday and found: >>> http://wiki.apache.org/cassandra/FAQ#ubuntu_hangs >>> >>> >>> On 18/02/2012 14:58, Aditya Gupta wrote: >>> >>> Am I installing it the right way ? While installing I didn't verify the >>> signatures using public key. >>> >>> On Sat, Feb 18, 2012 at 8:21 PM, Aditya Gupta wrote: >>> >>>> No data at all. just a fresh installation >>>> >>>> >>>> On Sat, Feb 18, 2012 at 6:57 PM, R. Verlangen wrote: >>>> >>>>> You might want to check your Cassandra logs, they contain important >>>>> information that might lead you to the actual cause of the problems. >>>>> >>>>> 2012/2/18 Aditya Gupta >>>>> >>>>>> Thanks! But what about the 100% cpu consumption that is causing the >>>>>> server to hang? >>>>>> >>>>>> >>>>>> On Sat, Feb 18, 2012 at 6:19 PM, Watanabe Maki < >>>>>> watanabe.maki@gmail.com> wrote: >>>>>> >>>>>>> I haven't use the packaged kit, but Cassandra uses half of >>>>>>> physical memory on your system by default. >>>>>>> You need to edit cassandra-env.sh to decrease heap size. >>>>>>> Update MAX_HEAP_SIZE and NEW_HEAP_SIZE and restart. >>>>>>> >>>>>>> From iPhone >>>>>>> >>>>>>> >>>>>>> On 2012/02/18, at 20:40, Aditya Gupta wrote: >>>>>>> >>>>>>> I just installed Cassandra on my ubuntu server by adding the >>>>>>> following to the sources list: >>>>>>> >>>>>>> deb http://www.apache.org/dist/cassandra/debian 10x main >>>>>>> deb-src http://www.apache.org/dist/cassandra/debian 10x main >>>>>>> >>>>>>> >>>>>>> Soon after install I started getting OOM errors & then the server >>>>>>> became unresponsive. I added more RAM to the server but found that >>>>>>> cassandra was consuming 100% CPU & 1GB RAM as soon the server was being >>>>>>> started. Why is this happening & how can get it to normal conditions ? >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >>> >> > > > -- > Tamar Fraenkel > Senior Software Engineer, TOK Media > > Tel: +972 2 6409736 > Mob: +972 54 8356490 > Fax: +972 2 5612956 > > --f46d043086c0fcb30204b968b15a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable @Tamar: Thanks a ton! works perfect now!

= On Mon, Feb 20, 2012 at 12:02 PM, Tamar Fraenkel <tamar@tok-media.com> wrote= :
=20 =20 =20
On 19/02/2012 21:55, Aditya Gupta wrote:
Is there anything to do with=A0running=A0cass= andra on a VMware ubuntu instance !? I am trying Cassandra on VMware ubuntu server instance.
I am doing that for the past couple of weeks both on VMWare player and on ESXi in development and it works fine.
My Ubuntu is 11.10, cassandra 1.0.7.
I followed the directions in datastax site for installation.
Tamar


On Sun, Feb 19, 2012 at 2:45 AM, Aditya Gupta <adynnn@gmail.com> wrote:
In my case, after installing cassandra, as soon as the server is started it hangs on it own (totally unresponsive).

It had openJDK-6's jdk & jre implementations.


On Sat, Feb 18, 2012 at 10:30 PM, Guy Incognito <dnd1066@gmail.com> wrote:
perhaps entirely unrelated, but somebody was asking about lockups on EC2 yesterday and found: http://wiki.= apache.org/cassandra/FAQ#ubuntu_hangs


On 18/02/2012 14:58, Aditya Gupta wrote:
Am I installing it the right way ? While installing I didn't verif= y the signatures using public key.

On Sat, Feb 18, 2012 at 8:21 PM, Aditya Gupta <adynnn@gmail.c= om> wrote:
No data at all. just a fresh installation=A0


On Sat, Feb 18, 2012 at 6:57 PM, R. Verlangen <robin@us2.nl> wrote:
You might want to check your Cassandra logs, they contain important information that might lead you to the actual cause of the problems.

20= 12/2/18 Aditya Gupta <adynnn@gmail.= com>
Thanks! But what about the 100% cpu consumption that is=A0causing=A0the server to hang?=A0


On Sat, Feb 18, 2012 at 6:19 PM, Watanabe Maki <watanabe.maki@gmail.com> wrote:
I haven'= t use the packaged kit, but Cassandra uses half of physical memory on your system by default.
You need to edit cassandra-env.sh to decrease heap size.
Update MAX_HEAP_SIZE and NEW_HEAP_SIZE and restart.

From iPhone


On 2012/02/18, at 20:40, Aditya Gupta <adynnn@gmail.com> wrote:

I just installed=A0Cassa= ndra=A0on my ubuntu server by adding the following to the sources list:


Soon after install I started getting OOM errors & then the server became unresponsive. I added more RAM to the server but found that cassandra was consuming 100% CPU & 1GB RAM as soon the server was being started. Why is this happening & how can get it to normal conditions ?









--=20
Tamar Fraenkel
Senior Software Engineer, TOK Media

Tel:   +972 2 6409736
Mob:  +972 54 8356490
Fax:   +972 2 5612956

--f46d043086c0fcb30204b968b15a--