The issue depicted in blocked_threads.png appeared in our production server.
(it results on a broken state that we fixed by rebooting the server)
The result of the first investigation is the following:
seems to have compatibility issues with the memory leak fix implemented in groovy 2.4.8
It seems that gradle had a similar issue, that was fixed by the following commit in groovy 2.4.8