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 22A177DD4 for ; Mon, 5 Dec 2011 10:24:08 +0000 (UTC) Received: (qmail 8675 invoked by uid 500); 5 Dec 2011 10:24:05 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 8624 invoked by uid 500); 5 Dec 2011 10:24:04 -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 8606 invoked by uid 99); 5 Dec 2011 10:24:04 -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 10:24:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of h.falzberger@gmail.com designates 209.85.216.51 as permitted sender) Received: from [209.85.216.51] (HELO mail-qw0-f51.google.com) (209.85.216.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 10:23:59 +0000 Received: by qadb12 with SMTP id b12so3202917qad.10 for ; Mon, 05 Dec 2011 02:23:38 -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=ZKsqtZK0LGd11UoufIlOs0vJGp37Ydtj8xWWPul9VTs=; b=FjzL6Dp1OiPzct9b97vqTsuvjHL3dx57QskW0k21qLJWTy467MG3NxVfJgXehKKOeD 51lRemsMG4p2B0bKUP7lmKIMX3E/PGbMCSY9c6aynjO7tU6Lq2nvo/Im3EjhX+XCsUR6 ssC10zxF5qywhcQ0dB6zefloK9dWIf5n2bLHs= MIME-Version: 1.0 Received: by 10.224.197.202 with SMTP id el10mr7480311qab.39.1323080618512; Mon, 05 Dec 2011 02:23:38 -0800 (PST) Received: by 10.224.20.10 with HTTP; Mon, 5 Dec 2011 02:23:38 -0800 (PST) In-Reply-To: References: Date: Mon, 5 Dec 2011 11:23:38 +0100 Message-ID: Subject: Re: OutOfMemory Exception during bootstrap From: Harald Falzberger To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 I don't think that this is the problem because I'm testing on a supercomputer with 16T RAM. Is it possible, that cassandra runs into this bug of the jvm? http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6399443 On Mon, Dec 5, 2011 at 06:29, samal wrote: > 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) > >