incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Black...@b3k.us>
Subject Re: Can't start cassandra
Date Sun, 18 Apr 2010 23:43:55 GMT
If you are trying to run on machines with less than 1GB of memory, or
OS resource limits that prevent allocation of 1GB of memory, that is
what happens.  You shouldn't be increasing -Xms, you should be
decreasing -Xmx.  Try -Xms16M -Xmx500M.


b

On Sun, Apr 18, 2010 at 2:30 PM, Soichi Hayashi <hayashis@indiana.edu> wrote:
> Hi.
>
> I just downloaded Cassandra 0.6.0 and followed "Getting Started" tutorial.
>
> When I try to start up Cassandra, I get following error message.
>
> 2010-04-18 20:53:39 UTC [hayashis@data-itb:~/app/apache-cassandra-0.6.0]$
> ./bin/cassandra -f
>  INFO 21:27:29,127 Auto DiskAccessMode determined to be mmap
>  INFO 21:27:29,482 Replaying
> /home/hayashis/app/apache-cassandra-0.6.0/log/log.txt
> java.lang.OutOfMemoryError: Java heap space
> Dumping heap to java_pid19185.hprof ...
> Heap dump file created [3630366 bytes in 0.065 secs]
> ERROR 21:27:29,720 Exception encountered during startup.
> java.lang.OutOfMemoryError: Java heap space
>         at
> org.apache.cassandra.db.commitlog.CommitLogHeader.readCommitLogHeader(CommitLogHeader.java:146)
>         at
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:181)
>         at
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:167)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:95)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177)
> Exception encountered during startup.
> java.lang.OutOfMemoryError: Java heap space
>         at
> org.apache.cassandra.db.commitlog.CommitLogHeader.readCommitLogHeader(CommitLogHeader.java:146)
>         at
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:181)
>         at
> org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:167)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:95)
>         at
> org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177)
>
> I've modified bin/cassandra.in.sh so that it will have
>
> # Arguments to pass to the JVM
> JVM_OPTS=" \
>         -ea \
>         -Xms1G\
>         -Xmx1G \
>
> .. but I got an identical error message.
>
> I tried to find some clues on the mailing list archive, or the Jira but so
> far I didn't find any.
>
> I tried installing cassandra on various other machines but ended up having
> the same issue.. I am just trying to learn about Cassandra and I appreciate
> any help you could give me.
>
> Thanks,
> Soichi
>
>

Mime
View raw message