Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4104

Cassandra appears to hang when JNA enabled and heapsize > free memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • None
    • Low

    Description

      When JNA is enabled heapsize is larger than free memory, all that is printed out is the classpath, then the printouts stop.

      If you hit enter again, you get the commandline, but no Cassandra process is running.

      Tested on both OpenJDK and Oracle Java.

      datastax@datastax-image:~/repos/cassandra$ free -m
                   total       used       free     shared    buffers     cached
      Mem:          2008        740       1267          0          3         54
      -/+ buffers/cache:        682       1326
      Swap:            0          0          0
      datastax@datastax-image:~/repos/cassandra$ sudo bin/cassandra
      datastax@datastax-image:~/repos/cassandra$  INFO 14:31:32,520 Logging initialized
       INFO 14:31:32,533 JVM vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.6.0_31
       INFO 14:31:32,534 Heap size: 1247805440/1247805440
       INFO 14:31:32,534 Classpath: bin/../conf:bin/../build/classes/main:bin/../build/classes/thrift:bin/../lib/antlr-3.2.jar:bin/../lib/avro-1.4.0-fixes.jar:bin/../lib/avro-1.4.0-sources-fixes.jar:bin/../lib/commons-cli-1.1.jar:bin/../lib/commons-codec-1.2.jar:bin/../lib/commons-lang-2.4.jar:bin/../lib/compress-lzf-0.8.4.jar:bin/../lib/concurrentlinkedhashmap-lru-1.2.jar:bin/../lib/guava-r08.jar:bin/../lib/high-scale-lib-1.1.2.jar:bin/../lib/jackson-core-asl-1.4.0.jar:bin/../lib/jackson-mapper-asl-1.4.0.jar:bin/../lib/jamm-0.2.5.jar:bin/../lib/jline-0.9.94.jar:bin/../lib/jna.jar:bin/../lib/json-simple-1.1.jar:bin/../lib/libthrift-0.6.jar:bin/../lib/log4j-1.2.16.jar:bin/../lib/servlet-api-2.5-20081211.jar:bin/../lib/slf4j-api-1.6.1.jar:bin/../lib/slf4j-log4j12-1.6.1.jar:bin/../lib/snakeyaml-1.6.jar:bin/../lib/snappy-java-1.0.4.1.jar:bin/../lib/jamm-0.2.5.jar
      
      datastax@datastax-image:~/repos/cassandra$ ps auwx | grep cass
      datastax 18374  1.0  0.0  13448   904 pts/2    S+   14:32   0:00 grep --color=auto cass
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            j.casares Joaquin Casares
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: