cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard Roth (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-4638) Patch to bin/cassandra to use 64bit JVM if available
Date Tue, 24 Sep 2013 06:07:03 GMT

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

Bernhard Roth edited comment on CASSANDRA-4638 at 9/24/13 6:06 AM:
-------------------------------------------------------------------

The issue is still relevant as I would like to allow cassandra to use much memory and this
works only with JVM 64bits.
Well on Solaris the default binary in /usr/bin/java points to /usr/java/bin/java.
There is the amd64 subdirectory which contains the 64-bit binaries.

root@fs01:/usr/java/bin/amd64# ./java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

root@fs01:/usr/java/bin# ./java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode)

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.

BTW: Just only one year after I reported the patch and wanted some feedback about an issue
which should not be a problem in 2012/2013 about "using 64-bit JVM for a database like application
which uses a LOT of memory" something is going on.. please let me know if I can supply more
informations. But well, just try it by yourself on Linux... Download 64-bit JVM and try to
run cassandra with 8GB or more memory

                
      was (Author: bernhard.roth):
    The issue is still relevant as I would like to allow cassandra to use much memory and
this works only with JVM 64bits.
Well on Solaris the default binary in /usr/bin/java points to /usr/java/bin/java.
There is the amd64 subdirectory which contains the 64-bit binaries.

root@fs01:/usr/java/bin/amd64# ./java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

root@fs01:/usr/java/bin# ./java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Server VM (build 23.25-b01, mixed mode)

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.


                  
> 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: 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

Mime
View raw message