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”
step to all the nodes
step node sends
data to it’s neighbours
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
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?