cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-11540) The JVM should exit if jmx fails to bind
Date Sat, 09 Apr 2016 21:11:25 GMT
Brandon Williams created CASSANDRA-11540:

             Summary: The JVM should exit if jmx fails to bind
                 Key: CASSANDRA-11540
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Brandon Williams
             Fix For: 2.1.x

If you are already running a cassandra instance, but for some reason try to start another
one, this happens:

INFO  20:57:09 JNA mlockall successful
WARN  20:57:09 JMX is not enabled to receive remote connections. Please see
for more info.
ERROR 20:57:10 Error starting local jmx server:
java.rmi.server.ExportException: Port already in use: 7199; nested exception is: Address already in use
        at sun.rmi.transport.tcp.TCPTransport.listen( ~[na:1.7.0_76]
        at sun.rmi.transport.tcp.TCPTransport.exportObject( ~[na:1.7.0_76]
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject( ~[na:1.7.0_76]
        at sun.rmi.transport.LiveRef.exportObject( ~[na:1.7.0_76]
        at sun.rmi.server.UnicastServerRef.exportObject( ~[na:1.7.0_76]
        at sun.rmi.registry.RegistryImpl.setup( ~[na:1.7.0_76]
        at sun.rmi.registry.RegistryImpl.<init>( ~[na:1.7.0_76]
        at java.rmi.registry.LocateRegistry.createRegistry( ~[na:1.7.0_76]
        at org.apache.cassandra.service.CassandraDaemon.maybeInitJmx(
        at org.apache.cassandra.service.CassandraDaemon.setup( [main/:na]
        at org.apache.cassandra.service.CassandraDaemon.activate(
        at org.apache.cassandra.service.CassandraDaemon.main( [main/:na]
Caused by: Address already in use
        at Method) ~[na:1.7.0_76]
        at ~[na:1.7.0_76]
        at ~[na:1.7.0_76]
        at<init>( ~[na:1.7.0_76]
        at org.apache.cassandra.utils.RMIServerSocketFactoryImpl.createServerSocket(
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket( ~[na:1.7.0_76]
        at sun.rmi.transport.tcp.TCPTransport.listen( ~[na:1.7.0_76]
        ... 11 common frames omitted

However the startup continues, and ends up replaying commitlogs, which is probably not a good

This message was sent by Atlassian JIRA

View raw message