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

jmx won't listen on localhost

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Local/Config
    • Labels:
      None
    • Environment:

      Debian 9

      java version "1.8.0_152"
      Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

      Apache Cassandra 3.11.1

    • Severity:
      Normal

      Description

      I have local JMX enabled but it isn't listening on localhost. This is how Cassandra is running

      cassand+  12008      1 72 15:27 ?        00:00:14 /opt/java/bin/java -Xloggc:/opt/cassandra/bin/../logs/gc.log -Dcassandra.available_processors=1 -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -XX:+HeapDumpOnOutOfMemoryError -Xss256k -XX:StringTableSize=1000003 -XX:+AlwaysPreTouch -XX:-UseBiasedLocking -XX:+UseTLAB -XX:+ResizeTLAB -XX:+PerfDisableSharedMem -Djava.net.preferIPv4Stack=true -Xms128M -Xmx128M -Xmn32M -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSWaitDuration=10000 -XX:+CMSParallelInitialMarkEnabled -XX:+CMSEdenChunksRecordAlways -XX:+CMSClassUnloadingEnabled -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M -XX:+UseCondCardMark -XX:CompileCommandFile=/srv/cassandra/conf/hotspot_compiler -javaagent:/opt/cassandra/bin/../lib/jamm-0.3.0.jar -Dcassandra.jmx.local.port=7199 -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=127.0.0.1 -Djava.library.path=/opt/cassandra/bin/../lib/sigar-bin -Dlogback.configurationFile=logback.xml -Dcassandra.logdir=/opt/cassandra/bin/../logs -Dcassandra.storagedir=/opt/cassandra/bin/../data -Dcassandra-pidfile=/run/cassandra/cassandra.pid -cp /srv/cassandra/conf:/opt/cassandra/bin/../build/classes/main:/opt/cassandra/bin/../build/classes/thrift:/opt/cassandra/bin/../lib/HdrHistogram-2.1.9.jar:/opt/cassandra/bin/../lib/ST4-4.0.8.jar:/opt/cassandra/bin/../lib/airline-0.6.jar:/opt/cassandra/bin/../lib/antlr-runtime-3.5.2.jar:/opt/cassandra/bin/../lib/apache-cassandra-3.11.1.jar:/opt/cassandra/bin/../lib/apache-cassandra-thrift-3.11.1.jar:/opt/cassandra/bin/../lib/asm-5.0.4.jar:/opt/cassandra/bin/../lib/caffeine-2.2.6.jar:/opt/cassandra/bin/../lib/cassandra-driver-core-3.0.1-shaded.jar:/opt/cassandra/bin/../lib/commons-cli-1.1.jar:/opt/cassandra/bin/../lib/commons-codec-1.9.jar:/opt/cassandra/bin/../lib/commons-lang3-3.1.jar:/opt/cassandra/bin/../lib/commons-math3-3.2.jar:/opt/cassandra/bin/../lib/compress-lzf-0.8.4.jar:/opt/cassandra/bin/../lib/concurrent-trees-2.4.0.jar:/opt/cassandra/bin/../lib/concurrentlinkedhashmap-lru-1.4.jar:/opt/cassandra/bin/../lib/disruptor-3.0.1.jar:/opt/cassandra/bin/../lib/ecj-4.4.2.jar:/opt/cassandra/bin/../lib/guava-18.0.jar:/opt/cassandra/bin/../lib/high-scale-lib-1.0.6.jar:/opt/cassandra/bin/../lib/hppc-0.5.4.jar:/opt/cassandra/bin/../lib/jackson-core-asl-1.9.2.jar:/opt/cassandra/bin/../lib/jackson-mapper-asl-1.9.2.jar:/opt/cassandra/bin/../lib/jamm-0.3.0.jar:/opt/cassandra/bin/../lib/javax.inject.jar:/opt/cassandra/bin/../lib/jbcrypt-0.3m.jar:/opt/cassandra/bin/../lib/jcl-over-slf4j-1.7.7.jar:/opt/cassandra/bin/../lib/jctools-core-1.2.1.jar:/opt/cassandra/bin/../lib/jflex-1.6.0.jar:/opt/cassandra/bin/../lib/jna-4.2.2.jar:/opt/cassandra/bin/../lib/joda-time-2.4.jar:/opt/cassandra/bin/../lib/json-simple-1.1.jar:/opt/cassandra/bin/../lib/jstackjunit-0.0.1.jar:/opt/cassandra/bin/../lib/libthrift-0.9.2.jar:/opt/cassandra/bin/../lib/log4j-over-slf4j-1.7.7.jar:/opt/cassandra/bin/../lib/logback-classic-1.1.3.jar:/opt/cassandra/bin/../lib/logback-core-1.1.3.jar:/opt/cassandra/bin/../lib/lz4-1.3.0.jar:/opt/cassandra/bin/../lib/metrics-core-3.1.0.jar:/opt/cassandra/bin/../lib/metrics-jvm-3.1.0.jar:/opt/cassandra/bin/../lib/metrics-logback-3.1.0.jar:/opt/cassandra/bin/../lib/netty-all-4.0.44.Final.jar:/opt/cassandra/bin/../lib/ohc-core-0.4.4.jar:/opt/cassandra/bin/../lib/ohc-core-j8-0.4.4.jar:/opt/cassandra/bin/../lib/reporter-config-base-3.0.3.jar:/opt/cassandra/bin/../lib/reporter-config3-3.0.3.jar:/opt/cassandra/bin/../lib/sigar-1.6.4.jar:/opt/cassandra/bin/../lib/slf4j-api-1.7.7.jar:/opt/cassandra/bin/../lib/snakeyaml-1.11.jar:/opt/cassandra/bin/../lib/snappy-java-1.1.1.7.jar:/opt/cassandra/bin/../lib/snowball-stemmer-1.3.0.581.1.jar:/opt/cassandra/bin/../lib/stream-2.5.2.jar:/opt/cassandra/bin/../lib/thrift-server-0.3.7.jar:/opt/cassandra/bin/../lib/jsr223/*/*.jar org.apache.cassandra.service.CassandraDaemon
      

      Note these:

      -Dcassandra.jmx.local.port=7199 -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=127.0.0.1
      

      But I am still seeing this:

      tcp        0      0 0.0.0.0:7199            0.0.0.0:*               LISTEN      12008/java          
      

      No matter how I configure it I cannot get it to not listen on 0.0.0.0 and instead listen on 127.0.0.1, even following the configuration notes in cassandra-env.sh.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              paullckby Paul Lockaby
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: