I've implemented a REST API with Vert.x and I want to monitor its threads. I package the app as a fat-jar and I'm using JVisualVM and JProfiler for monitoring.
When I launch it from the IDE (Intellij) I can see everything, but when I launch it with java -jar fatjar
I can only see memory consumption.
I enabled JMX from the application thinking JVisualVM uses JMX to get the metrix, but it didn't help.
What should I do to enable JVisualVM access to threads and CPU?
Thanks in advance :)