Hi guys,
I’ve got the following problem. I’ve got a network of ~100 Actors, all running locally. The code is more or less:
There is one Actor “network” and 100 “nodes”
network
sends step
to all the nodes
upon receiving step
node sends data
to it’s neighbours
upon receiving data
node does some calculation on it, and adds the sender to seen
set. If all the neighbours are seen it sends ready
to network
upon receiving ready
network adds node to seen
. If all are seen new step
is sent.
My problem: while the code runs and with debug enabled I can see a lot of messages is being sent, the JVM process utilizes between 0.5 and 1% of my CPU. Memory should not be a problem as well as the JVM consumes 700-900MB of Ram and Xmxx is set to 4G. There are no disk writes. What is my bottleneck? Why won’t my code use more CPU to run faster?
I’m new to Akka but my suspicion is that the dispatcher might tick not frequently enough? Could that be a thing?
6 posts - 2 participants