cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-3124) java heap limit for nodetool
Date Thu, 26 Feb 2015 22:14:05 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-3124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339292#comment-14339292
] 

Vladimir commented on CASSANDRA-3124:
-------------------------------------

Today I tested 100 nodes cassandra cluster. `nodetool status` works but `nodetool ring' crashed
with Out Of Memory:

./application/lib/apache-cassandra-2.0.10/bin/nodetool ring
Note: Ownership information does not include topology; for complete information, specify a
keyspace

Datacenter: datacenter1
==========
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Unknown Source)
	at java.util.ArrayList.grow(Unknown Source)
	at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
	at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
	at java.util.ArrayList.addAll(Unknown Source)
	at org.apache.cassandra.tools.NodeCmd.printDc(NodeCmd.java:325)
	at org.apache.cassandra.tools.NodeCmd.printRing(NodeCmd.java:292)
	at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:1224)

I had to set up higher limit, 320MB at the script. Do you really think 32 Mb is enough or
something wrong on my side? 

nodetool ring | wc -l
24842 ring.txt


> java heap limit for nodetool
> ----------------------------
>
>                 Key: CASSANDRA-3124
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3124
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>         Environment: not important
>            Reporter: Zenek Kraweznik
>            Assignee: Zenek Kraweznik
>            Priority: Minor
>             Fix For: 1.0.1
>
>
> by defaull (from debian package)
> # nodetool
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
> #
> and:
> --- /usr/bin/nodetool.old       2011-09-02 14:15:14.228152799 +0200
> +++ /usr/bin/nodetool   2011-09-02 14:14:28.745154552 +0200
> @@ -55,7 +55,7 @@
>      ;;
>  esac
> -$JAVA -cp $CLASSPATH -Dstorage-config=$CASSANDRA_CONF \
> +$JAVA -Xmx32m -cp $CLASSPATH -Dstorage-config=$CASSANDRA_CONF \
>          -Dlog4j.configuration=log4j-tools.properties \
>          org.apache.cassandra.tools.NodeCmd $@
> after every upgrade i had to add limit manually. I think it's good idea to add it by
default ;)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message