-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodetool fails if heap size is specified #172
Comments
I don't know what would be causing this, setting the $ docker run --name cass -e JVM_OPTS="-Xms1000M -Xmx1024M" cassandra:3.11.3 nodetool status
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size |
I've checked nodetool script and it looks like a bug is hidden in
If I remove explicit setting of Xmx ( |
Is there somewhere this is already filed upstream so they're aware of the issue? It doesn't look like something we can/should fix in the Docker image. |
(Closing since I don't see anything we should fix at this layer -- I'd recommend following up with an issue upstream letting them know that blurb of |
use this it will work use JAVA_OPTIONS instead of JVM_OPTS |
Hi @cnighojkar, |
I also faced same problem while running nodetool when I was trying to start a 3 node cluster on my windows machine. But when I added another environment variable, it worked for me
|
Hello!
When I launch Cassandra container without any env variables,
nodetool works fine.
However, if i specify JVM_OPTS
nodetool fails while executing any command with following error:
I'm not sure if Cassandra and Nodetool share same config, but in Cassandra startup logs I can see that JVM args are the same (the only difference is in order) for both cases:
Without specifying args:
With specifying args:
Do I do anything wrong while specifying JVM args?
Thanks!
The text was updated successfully, but these errors were encountered: