I suspect you'll have to use the same java command as Eclipse generates
when it starts. (and see what is different)

On Fri, Jun 12, 2015 at 9:07 AM, Dennis Jönsson <zeleb...@gmail.com> wrote:

> Yeah I have tried it on several different computers with different OS, its
> the same thing. And this works just fine when run from eclipse but deployed
> it does not work and I get zero indication on why.
>
> Den fredag 12 juni 2015 kl. 14:55:54 UTC+2 skrev √:
>>
>> I'd test your program on another computer.
>>
>> On Fri, Jun 12, 2015 at 8:51 AM, Dennis Jönsson <zele...@gmail.com>
>> wrote:
>>
>>> I cant get jconsole to work. I run jconsole <PID> but it just tells me
>>> its an invalid PID.
>>>
>>>
>>>
>>> Den fredag 12 juni 2015 kl. 14:24:11 UTC+2 skrev √:
>>>>
>>>> What does JConsole say the threads are stuck on?
>>>>
>>>> On Fri, Jun 12, 2015 at 4:04 AM, Dennis Jönsson <zele...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hello, I have been developing a cluster solution in akka for awhile.
>>>>> It is working fine together with the old code in my development
>>>>> environment.
>>>>> But now when its time to deploy the solution and test it live I run
>>>>> into a strange problem. The program simply stops doing anything when doing
>>>>> ActorSystem.create here, the last log is the one right above, nothing
>>>>> happens after that system seems to hang.
>>>>>
>>>>>  private void startAkkaClusterMember(boolean master, int port) {
>>>>>         Config conf = null;
>>>>>         log.debug("Creating config for actor system");
>>>>>         if (master) {
>>>>>             conf =
>>>>> ConfigFactory.parseString("akka.cluster.roles=[master]").withFallback(ConfigFactory.parseString("akka.remote.netty.tcp.port="
>>>>> + port))
>>>>>                     .withFallback(ConfigFactory.load("application"));
>>>>>         } else {
>>>>>             conf =
>>>>> ConfigFactory.parseString("akka.cluster.roles=[worker]").withFallback(ConfigFactory.parseString("akka.remote.netty.tcp.port="
>>>>> + port))
>>>>>                     .withFallback(ConfigFactory.load("application"));
>>>>>         }
>>>>>         if (master) {
>>>>>             log.debug("Trying to create ActorSystem");
>>>>>    ->      system = ActorSystem.create("ClusterSystem", conf);
>>>>>             log.debug("System created " + system.name());
>>>>>             this.actor =
>>>>> system.actorOf(Props.create(ClusterMemberActor.class), "master");
>>>>>             system.actorOf(
>>>>>
>>>>> ClusterSingletonManager.defaultProps(Props.create(ActiveMasterActor.class,
>>>>> this.actor), "master", PoisonPill.getInstance(), "master"),
>>>>>                     "active");
>>>>>         } else {
>>>>>             system = ActorSystem.create("ClusterSystem", conf);
>>>>>             this.actor =
>>>>> system.actorOf(Props.create(ClusterMemberActor.class), "worker");
>>>>>         }
>>>>>         log.debug("Done creating actor system " + this.actor);
>>>>>     }
>>>>>
>>>>>
>>>>> This is my config file, I have confirmed that it gets read properly by
>>>>> logging the contents
>>>>>
>>>>> akka {
>>>>>
>>>>> loggers = ["akka.event.slf4j.Slf4jLogger"]
>>>>>   loglevel = "DEBUG"
>>>>>   logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
>>>>>   actor {
>>>>>     provider = "akka.cluster.ClusterActorRefProvider"
>>>>>
>>>>>   }
>>>>>   remote {
>>>>>     log-remote-lifecycle-events = off
>>>>>     netty.tcp {
>>>>>       hostname = "127.0.0.1"
>>>>>       port = 0
>>>>>     }
>>>>>   }
>>>>>
>>>>>   cluster {
>>>>>     seed-nodes = [
>>>>>       "akka.tcp://ClusterSystem@127.0.0.1:2551",
>>>>>       "akka.tcp://ClusterSystem@127.0.0.1:2552"]
>>>>>  auto-down-unreachable-after = 5s
>>>>>  failure-detector {
>>>>>       threshold = 8.0
>>>>>       min-std-deviation = 100 ms
>>>>>       acceptable-heartbeat-pause = 3 s
>>>>>     }
>>>>>   }
>>>>> }
>>>>>
>>>>>  --
>>>>> >>>>>>>>>> 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 akka-user+...@googlegroups.com.
>>>>> To post to this group, send email to akka...@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Cheers,
>>>> √
>>>>
>>>  --
>>> >>>>>>>>>> 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 akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Cheers,
>> √
>>
>  --
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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