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 4D12E7FC5 for ; Mon, 5 Dec 2011 05:29:40 +0000 (UTC) Received: (qmail 23031 invoked by uid 500); 5 Dec 2011 05:29:38 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 22719 invoked by uid 500); 5 Dec 2011 05:29:34 -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 22711 invoked by uid 99); 5 Dec 2011 05:29:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 05:29:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of samalgorai@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 05:29:27 +0000 Received: by bkcjc3 with SMTP id jc3so363215bkc.31 for ; Sun, 04 Dec 2011 21:29:06 -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=hEuqotO/txSz4La//t7HbtqK5QA+kuEjuam82pwYtuo=; b=oTlOY0k+Jtl3cmgQDBGAcPHtlL2+CCViZhRNo9/VZFlw2AAGiUDn9vLTId2nvLx8x1 raKx0AVNW4222kO8wODTTWbbVWbpwce/7ZFO1YMJG1+wEvdiwLGlOJ2IY2U479kK2mb6 O3+Ci0QdAii9t8Afs0Hh+hbeLlJO3qlCnzLas= MIME-Version: 1.0 Received: by 10.216.220.88 with SMTP id n66mr1818668wep.19.1323062945203; Sun, 04 Dec 2011 21:29:05 -0800 (PST) Received: by 10.223.70.199 with HTTP; Sun, 4 Dec 2011 21:29:05 -0800 (PST) In-Reply-To: References: Date: Mon, 5 Dec 2011 10:59:05 +0530 Message-ID: Subject: Re: OutOfMemory Exception during bootstrap From: samal To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e6d63fa1dd475c04b3519861 --0016e6d63fa1dd475c04b3519861 Content-Type: text/plain; charset=UTF-8 Lower your heap size, if you are testing multiple instance with single node. https://github.com/apache/cassandra/blob/trunk/conf/cassandra-env.sh#L64 On Sun, Dec 4, 2011 at 11:08 PM, Harald Falzberger wrote: > Hi, > > I'm trying to set up a test environment with 2 nodes on one physical > machine with two ips. I configured both as adviced in the > documentation: > > cluster_name: 'MyDemoCluster' > initial_token: 0 > seed_provider: > - seeds: "IP1" > listen_address: IP1 > rpc_address: IP1 > > cluster_name: 'MyDemoCluster' > initial_token: 85070591730234615865843651857942052864 > seed_provider: > - seeds: "IP1" > listen_address: IP2 > rpc_address: IP2 > > Node1 uses 7199 as JMX port, Node2 7198 because JMX by default is > listening on all interfaces. > > When I bootstrap node2, on node1 following exception is thrown and > node1 terminates. the same error occurs again if I try to restart > node1 and node2 is still running. > > Does anyone of you have an idea why this happens? I'm starting each > cassandra instance with 16GB RAM and my database is empty. > > Exception on Node1 > java.lang.OutOfMemoryError: unable to create new native thread > at java.lang.Thread.start0(Native Method) > at java.lang.Thread.start(Thread.java:597) > at > java.util.concurrent.ThreadPoolExecutor.addIfUnderCorePoolSize(ThreadPoolExecutor.java:703) > at > java.util.concurrent.ThreadPoolExecutor.prestartAllCoreThreads(ThreadPoolExecutor.java:1384) > at > org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.(JMXEnabledThreadPoolExecutor.java:77) > at > org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.(JMXEnabledThreadPoolExecutor.java:65) > at > org.apache.cassandra.concurrent.StageManager.multiThreadedStage(StageManager.java:58) > at > org.apache.cassandra.concurrent.StageManager.(StageManager.java:44) > at > org.apache.cassandra.net.MessagingService.receive(MessagingService.java:512) > at > org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTcpConnection.java:159) > --0016e6d63fa1dd475c04b3519861 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Lower your heap size, if you are testing multiple instance with single node= .

https://github.com/apache/cassandra/blob/trunk/conf/cas= sandra-env.sh#L64


On Sun, Dec 4, 2011 at 11:08 PM, Harald = Falzberger <= h.falzberger@gmail.com> wrote:
Hi,

I'm trying to set up a test environment with 2 nodes on one physical machine with two ips. I configured both as adviced in the
documentation:

cluster_name: 'MyDemoCluster'
initial_token: 0
seed_provider:
- seeds: "IP1"
listen_address: IP1
rpc_address: IP1

cluster_name: 'MyDemoCluster'
initial_token: 85070591730234615865843651857942052864
seed_provider:
- seeds: "IP1"
listen_address: IP2
rpc_address: IP2

Node1 uses 7199 as JMX port, Node2 7198 because JMX by default is
listening on all interfaces.

When I bootstrap node2, on node1 following exception is thrown and
node1 terminates. the same error occurs again if I try to restart
node1 and node2 is still running.

Does anyone of you have an idea why this happens? I'm starting each
cassandra instance with 16GB RAM and my database is empty.

Exception on Node1
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderCorePoolSize(ThreadPoo= lExecutor.java:703)
at java.util.concurrent.ThreadPoolExecutor.prestartAllCoreThreads(ThreadPoo= lExecutor.java:1384)
at org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>= ;(JMXEnabledThreadPoolExecutor.java:77)
at org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>= ;(JMXEnabledThreadPoolExecutor.java:65)
at org.apache.cassandra.concurrent.StageManager.multiThreadedStage(StageMan= ager.java:58)
at org.apache.cassandra.concurrent.StageManager.<clinit>(StageManager= .java:44)
at org.apache.cassandra.net.MessagingService.receive(MessagingService.java:= 512)
at org.apache.cassandra.net.IncomingTcpConnection.receiveMessage(IncomingTc= pConnection.java:159)

--0016e6d63fa1dd475c04b3519861--