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

Jeff Jirsa commented on CASSANDRA-12074:
----------------------------------------

Seems to work on OSX:

{code}
bash-3.2# ccm status
Cluster: 'test'
---------------
node1: UP
bash-3.2# netstat -lna | grep 7100
tcp4       0      0  127.0.0.1.7100         127.0.0.1.57741        ESTABLISHED
tcp4       0      0  127.0.0.1.57741        127.0.0.1.7100         ESTABLISHED
tcp4       0      0  127.0.0.1.7100         *.*                    LISTEN
bash-3.2# lsof -i ":7100" ; if [ $? -eq "0" ]; then echo "in use?"; else echo 
"not in use"; fi
COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
java    5895 root   92u  IPv4 0xd9ed09d8f5e70fc1      0t0  TCP 
localhost:font-service (LISTEN)
in use?
bash-3.2#
{code}



> Faster check for open JMX port on startup
> -----------------------------------------
>
>                 Key: CASSANDRA-12074
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12074
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Lifecycle
>            Reporter: Tyler Hobbs
>            Assignee: Tyler Hobbs
>            Priority: Minor
>             Fix For: 3.x
>
>
> Since CASSANDRA-7254, we check whether the JMX port is available before 
> starting Cassandra in order to provide a better error message when another 
> Cassandra process is already running.  The current check starts a Java 
> process to do this, which takes ~3 seconds.  Instead, we can use {{lsof}}, 
> which is basically instantaneous.
> By my estimate, this will shave about 40 minutes off our dtest runs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to