renannprado / vertx-micrometer-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vertx + Metrics bug reproducer

This was related to issue: eclipse-vertx/vert.x#2943

But turns out I made a mistake. :)

This bug was found while using Java11:

openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

In this project I'm trying to use Vertx with Micrometer, more specifically the class StatsdMeterRegistry.

When you try to close the application by calling vertx#close, you see that the application still hangs.

Even if you try to manually close the StatsdMeterRegistry, the application might still hang in many cases (it's pretty random).

When you use visualvm to look at the threads that are stuck, you will see the following image:

hanging threads

About


Languages

Language:Kotlin 100.0%