cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Falzberger <h.falzber...@gmail.com>
Subject OutOfMemory Exception during bootstrap
Date Sun, 04 Dec 2011 17:38:21 GMT
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.<init>(JMXEnabledThreadPoolExecutor.java:77)
at org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>(JMXEnabledThreadPoolExecutor.java:65)
at org.apache.cassandra.concurrent.StageManager.multiThreadedStage(StageManager.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(IncomingTcpConnection.java:159)

Mime
View raw message