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 586D2DF24 for ; Tue, 28 May 2013 05:47:32 +0000 (UTC) Received: (qmail 24813 invoked by uid 500); 28 May 2013 05:47:29 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 24789 invoked by uid 500); 28 May 2013 05:47:29 -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 24776 invoked by uid 99); 28 May 2013 05:47:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 May 2013 05:47:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chiddu@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 May 2013 05:47:24 +0000 Received: by mail-ie0-f171.google.com with SMTP id s9so2367795iec.16 for ; Mon, 27 May 2013 22:47:04 -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=5947Cjy+Fasc2heAfw6k+vGBa+WW+Ye6Zn2zIhyVVhw=; b=GoUFu69nSjcODMMPe2LB/YLsoXg+kAvvXbxHm+vq384xrCN/VO3XtbPPXjZru1Qe4c HWUSwepM192q5Ek1uOXNKKYxN0mNdGf6wxRCVuknf3UAW0TB6yhBLZF6P6SHn0Q9Mt/B M/XE87mmY0LxuW7x2ReO+t1jr7OwdAZPSJ/z+RYJRrPOE8UhJxINzVpcJpilINrMKTnY 7iXsUyEHTj+H1E7yrR5g6bKmzQ37VyJiAcs1zYLkGmmgAHxIyNRjp1XjGsq6+7EwKk2p YOvJ3oSmJrwCZqpP+V6u950ZgazWyHY5qw/ypY51YIl+WiTowUDRqge/y8BbrMbO0JLK awQg== MIME-Version: 1.0 X-Received: by 10.42.203.68 with SMTP id fh4mr18494144icb.36.1369720024252; Mon, 27 May 2013 22:47:04 -0700 (PDT) Received: by 10.43.106.68 with HTTP; Mon, 27 May 2013 22:47:04 -0700 (PDT) In-Reply-To: References: <51A2C88C.7070109@gmail.com> Date: Tue, 28 May 2013 11:17:04 +0530 Message-ID: Subject: Re: Buggy JRE error From: Chidambaran Subramanian To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf303f6e2c7ccb2904ddc0cbdf X-Virus-Checked: Checked by ClamAV on apache.org --20cf303f6e2c7ccb2904ddc0cbdf Content-Type: text/plain; charset=ISO-8859-1 I got this error today. INFO 11:16:08,067 Enqueuing flush of Memtable-LocationInfo@8820986(41/51 serialized/live bytes, 1 ops) INFO 11:16:08,068 Writing Memtable-LocationInfo@8820986(41/51 serialized/live bytes, 1 ops) ERROR 11:16:08,077 Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main] java.io.IOError: java.io.IOException: Map failed at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:127) at org.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAllocator.java:203) at org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:95) at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30) at java.lang.Thread.run(Thread.java:679) Caused by: java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:803) at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:119) ... 4 more Caused by: java.lang.OutOfMemoryError: Map failed at sun.nio.ch.FileChannelImpl.map0(Native Method) at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800) ... 5 more ERROR 11:16:08,082 Exception in thread Thread[StorageServiceShutdownHook,5,main] java.lang.NullPointerException at org.apache.cassandra.gms.Gossiper.stop(Gossiper.java:1132) at org.apache.cassandra.service.StorageService$2.runMayThrow(StorageService.java:489) at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30) at java.lang.Thread.run(Thread.java:679) Are the two issues related? On Mon, May 27, 2013 at 1:50 PM, Kais Ahmed wrote: > Hi chiddu, > > You have to configure your operating system to use the Oracle JRE instead > of OpenJDK. > > http://www.datastax.com/docs/1.0/install/install_jre > > > > 2013/5/27 S Chidambaran > >> I get these errors frequently as Cassandra starts up. I'm using the >> official Java distribution from Ubuntu. >> >> >> WARN 08:11:48,145 MemoryMeter uninitialized (jamm not specified as java >> agent); assuming liveRatio of 10.0. Usually this means cassandra-env.sh >> disabled jamm because you are using a buggy JRE; upgrade to the Sun JRE >> instead >> >> >> >> java version "1.6.0_27" >> OpenJDK Runtime Environment (IcedTea6 1.12.5) >> (6b27-1.12.5-0ubuntu0.12.04.1) >> OpenJDK Server VM (build 20.0-b12, mixed mode) >> >> >> Any idea on how to fix this? >> >> Regards >> Chiddu >> >> >> > --20cf303f6e2c7ccb2904ddc0cbdf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I got this error today.
INFO 11:16:08,067 Enqueuing flush of Memtab= le-LocationInfo@8820986(41/51 serialized/live bytes, 1 ops)
=A0IN= FO 11:16:08,068 Writing Memtable-LocationInfo@8820986(41/51 serialized/live= bytes, 1 ops)
ERROR 11:16:08,077 Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,m= ain]
java.io.IOError: java.io.IOException: Map failed
<= span class=3D"Apple-tab-span" style=3D"white-space:pre"> at org.apac= he.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.ja= va:127)
at or= g.apache.cassandra.db.commitlog.CommitLogAllocator$3.run(CommitLogAllocator= .java:203)
at org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMay= Throw(CommitLogAllocator.java:95)
at or= g.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
=
at ja= va.lang.Thread.run(Thread.java:679)
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelIm= pl.map(FileChannelImpl.java:803)
at org.apache.cassandra.db.commitlog.Commi= tLogSegment.<init>(CommitLogSegment.java:119)
... 4= more
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.ni= o.ch.FileChannelImpl.map0(Native Method)
at su= n.nio.ch.FileChannelImpl.map(FileChannelImpl.java:800)
... 5 more
ERROR 11:16:08,082 Exception in thread Thread[StorageServiceShutdownHook,5= ,main]
java.lang.NullPointerException
at org.apache.cassandra.gms.Gossiper.st= op(Gossiper.java:1132)
at org.apache.cassandra.service.StorageService$2.run= MayThrow(StorageService.java:489)
at or= g.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
=
at ja= va.lang.Thread.run(Thread.java:679)


Are the two issues related?

On Mon, May 27, 2013 at 1:50 PM, Kais Ahmed <kais= @neteck-fr.com> wrote:
Hi chiddu,

You have= to configure your operating system to use the Oracle JRE instead of OpenJD= K.

http://www.datastax.com/docs/1.0/install/install_jre



2013/5/27 S Chidambaran <chiddu@gmail.= com>
I get these errors frequently as Cassandra starts up. I'm using the off= icial Java distribution from Ubuntu.


WARN 08:11:48,145 MemoryMeter uninitialized (jamm not specified as java age= nt); assuming liveRatio of 10.0. =A0Usually this means cassandra-env.sh dis= abled jamm because you are using a buggy JRE; upgrade to the Sun JRE instea= d



java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1= )
OpenJDK Server VM (build 20.0-b12, mixed mode)


Any idea on how to fix this?

Regards
Chiddu




--20cf303f6e2c7ccb2904ddc0cbdf--