[ https://issues.apache.org/jira/browse/CASSANDRA-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776457#comment-13776457 ]
Eric Evans commented on CASSANDRA-4638: --------------------------------------- {quote} Please note that the wish to use automatically the 64-bit JVM is not only no Solaris, I would like to see the same feature on Linux or other operating systems on which cassandra may run and which may use a downloaded version of the JVM. As far as I remember even cassandra was telling in the log files that a 64bit JVM shall be used. {quote} The way this is supposed to work is that (whenever possible), you properly configure the system for the version of Java you are using; The desired Java binary should be in the path. When this isn't possible, the {{$JAVA_HOME}} environment variable can be used to infer the location. We use {{$JAVA_HOME}} here because it is a _very_ widely used convention, and something that people are familiar with. This is the first report I'm aware of where {{$JAVA_HOME/bin/java}} wouldn't work. TL;DR Linux doesn't have this issue. I propose [this alternate patch|https://issues.apache.org/jira/secure/attachment/12604822/4638.patch] instead. It's effectively the same, but implements a search list which is (hopefully) easier to grok, and will be easier to extend if we have to add more alternatives. > Patch to bin/cassandra to use 64bit JVM if available > ---------------------------------------------------- > > Key: CASSANDRA-4638 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4638 > Project: Cassandra > Issue Type: Improvement > Components: Core > Affects Versions: 1.1.4 > Environment: Tested on Solaris 11 with Oracle supplied JVM 1.6 and 1.7 > Reporter: Bernhard Roth > Labels: 64bit, linux, solaris > Attachments: 4638.patch, cassandra.patch > > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > Cassandra uses by default the JAVA binary at $JAVA_HOME/bin and complains at > start that the 64bit version should be used. > Well, even if the 64bit JAVA version is installed, cassandra still does not > use it. > Attached patch solves this problem by checking if $JAVA_HOME/bin/amd64/java > binary exists. If yes, it will be used for cassandra. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira