On Tue, Apr 21, 2015 at 10:44 PM, Joseph Elliott <[email protected]>
wrote:

> Hello,
>
> I've got an application that uses an Akka cluster v2.3.9 (we are running
> several servers at Amazon EC2) and recently the cluster has been behaving
> badly.  The nodes aren't reconnecting to each other when one of them goes
> down.  We are running the cluster to take advantage of the Singleton
> (basically we have a cron job we want to only run on one node) and so we
> aren't using autodowning.
>
> I'd like to get some visibility into what's going on, but I'm having
> trouble getting the script mentioned here to work:
> http://doc.akka.io/docs/akka/snapshot/java/cluster-usage.html#cluster-command-line-java
>
> I've downloaded the script from this page:
> https://github.com/akka/apps/tree/master/akka-cluster-testapp/bin, but
> I'm not even sure that's the right script since it wasn't linked from the
> documentation.
>

It is in the distribution that can be downloaded here:
http://akka.io/downloads/

I think the script that you grabbed is alright. It only needs
the jmxsh-R5.jar.


> My command line settings for the remote application are:
>
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false
> -Dcom.sun.management.jmxremote.port=9999
> -Dcom.sun.management.jmxremote.local.only=false
> -Djava.rmi.server.hostname=localhost
>
>
I used

JMX_OPTS="-Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false"


> I copied the /bin folder with the script in it to the remote server and am
> trying to run the script from there (through SSH).  I keep getting this
> error message:
>
> >bin/akka-cluster localhost 9999 cluster-status
>
> Akka cluster node is not available on localhost, due to false
>
> Does anyone have experience using this script successfully?
>
I think it should be
bin/akka-cluster localhost:9999 cluster-status
Note the : between the hostname and port.
If that is the problem the documentation has a bug.

I know there is a problem using it on AWS between remote nodes, but it
should work on the local node, i.e. run the script on the same host as one
of the cluster nodes.

/Patrik



>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to