Sunday, November 27, 2016

Eclipse Memory Analyser

That is probably by far the best heapdump analyser tool I've ever used. It provides immediate suggestions to problem but as well allows to drill into details of heap and navigate object tree. Understand how much memory data structure utilise.

There are number of good articles on the subject. One of the good intro articles here.

I've found that I had to run tool with increased memory on Mac in order to open large heaps. To run it on Mac with extended memory (below is 6Gb) execute following command:
open -a mat --args -vmargs -Xmx6G
Hope it helped someone...

Wednesday, January 1, 2014

Re-try pattern using Akka actor / ask pattern

Hi there...

Thought of sharing a relatively simple gist of Retry akka pattern I came up recently. It could be useful in case Client actor sends request to another Service provider actor and request may have to be retried due to different reasons (network failure in distributed environment, service down or other...). To increase resilience Client attempts to re-try operation until either response is received or after number of retries exceeded Client simply gives up.

The pattern is quite generic and I thought it would be cool to have a pluggable re-tries for akka actors.