This is the visualizing part of https://github.com/ouven/akka-visualmailbox
1.7K
This project wants to help you finding hotspots in your Akka application by visualizing your message flows like it is shown on the next picture. Actors are displayed as nodes, message flows are displayed as arrows. The thicker an arrow is displayed, the more messages have been sent this way. You can get the actor path by clicking the nodes. The number shown on a node represents the mailbox size of this actor.

To run the server, you have to have node.js and bower installed.
To prepare the web part you need to do
bower install
in the project root directory, then
sbt "project visualization" run
to run the server.
The visualisation component receives the mailbox data at udp://0.0.0.0:60009, which can be changed in the application.conf by overriding
de.aktey.akka.visualmailbox {
server {
address {
host: "localhost"
port: 60009
}
}
}
It servers a web surface at http://localhost:8080, that renders the messages with vis.js The web server can be changed to listen at a different interface by overriding in the application.conf
de.aktey.akka.visualmailbox {
web.server {
address {
host: "0.0.0.0"
port: 8080
}
}
}
It uses the JavaScript keyword "class" and the "EventSource" API, so it is viewable with Chrome 42+ or Firefox 45+. Other browsers I did not try.
There is docker image on https://hub.docker.com. You can run it with
docker run -ti --rm -p 8080:8080 -p 60009:60009/udp ouven/akka-visual-mailbox-visualization
Content type
Image
Digest
Size
83.4 MB
Last updated
almost 10 years ago
docker pull ouven/akka-visual-mailbox-visualization