--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/IywF9q3EYMQJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Patrik Nordwall
Typesafe - Enterprise-Grade Scala from the Experts
Twitter: @patriknw
"default-dispatcher18" prio=5 tid=7f866d471800 nid=0x1875fe000 waiting on condition [1875fd000]java.lang.Thread.State: TIMED_WAITING (parking)at sun.misc.Unsafe.park(Native Method)- parking to wait for <7b5f77a80> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:424)at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:945)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)at java.lang.Thread.run(Thread.java:680)Locked ownable synchronizers:- None"DefaultScheduler1" prio=5 tid=7f8675022800 nid=0x154fa3000 waiting on condition [154fa2000]java.lang.Thread.State: TIMED_WAITING (sleeping)at java.lang.Thread.sleep(Native Method)at java.lang.Thread.sleep(Thread.java:302)at org.jboss.netty.akka.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:403)at org.jboss.netty.akka.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:319)at java.lang.Thread.run(Thread.java:680)Locked ownable synchronizers:- None
Ok, so I suppose I need to make use of the remote support to achieve this.The next question then becomes does the remote support use a local transport within the same jvm or does it always use TCP/IP?
It's a very simplified case in the example and actors in sys1 can't see actors in sys2.I've also noticed that in my tests when I call system.shutdown it doesn't actually shut down the systems dispatchers and scheduler.I've had to restructure some specs to share the actor system because it would lead to 1000+ threads being created in a single spec with many examples. most of them would have a thread dump like this:
"default-dispatcher18" prio=5 tid=7f866d471800 nid=0x1875fe000 waiting on condition [1875fd000]java.lang.Thread.State: TIMED_WAITING (parking)at sun.misc.Unsafe.park(Native Method)- parking to wait for <7b5f77a80> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:424)at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:945)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)at java.lang.Thread.run(Thread.java:680)Locked ownable synchronizers:- None
"DefaultScheduler1" prio=5 tid=7f8675022800 nid=0x154fa3000 waiting on condition [154fa2000]java.lang.Thread.State: TIMED_WAITING (sleeping)at java.lang.Thread.sleep(Native Method)at java.lang.Thread.sleep(Thread.java:302)at org.jboss.netty.akka.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:403)at org.jboss.netty.akka.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:319)at java.lang.Thread.run(Thread.java:680)
Locked ownable synchronizers:- None
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/UgV90HfcPQkJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
A related question is if communication between actors in a remote
actor system is local.
Specifically:
1) ActorSystem uses the RemoteActorRefProvider and NettyRemoteSupport
2) Actors within the above system have remote support, and can be
accessed via IP:Port.
3) Does communication between actors within the system involve the TCP/
IP protocol stack, or is it a direct write into the actors mailbox?
We should optimize it. Create a ticket.
--
Jonas Bonér
CTO
Typesafe - Enterprise-Grade Scala from the Experts
Phone: +46 733 777 123
Twitter: @jboner
Is there an ETA for this?
One workaround would be to have two actor systems: the first system
being a proxy to the outside world, and the second being all the
actors running without remoting. Only, you'd have two ActorSystems in
the same JVM. Would that create a problem?
Patrik Nordwall
Typesafe - Enterprise-Grade Scala from the Experts
Twitter: @patriknw