I have used this (https://stackoverflow.com/a/17457394/3009344) solution to remotely look into my Java VM.
I am trying it with JConsole:
Opening it
Setting
service:jmx:rmi:///jndi/rmi://localhost:1100/jmxrmias remote process and connecting
It works great, i can see many useful infos. What i really need, is to see when which thread is alive, just like in VisualVM.
So i am running it, clicking File > Add JMX Connection. As Connection i am setting service:jmx:rmi:///jndi/rmi://localhost:1100/jmxrmi and then clicking OK.
I can see in Overview correct Virtual Machine arguments and System Properties, also monitor and Threads are showing data.
Suddenly after few seconds of happiness, i am losing SSH connection (Putty Fatal Error "Software caused connection abort", after reconnecting my PC cannot find such host :O), CPU and Memory sampling are showing as Not available. CPU Sampling is also showing me exact error (http://pastebin.com/A2wTjLQL).
So i am trying to figure out, why is it happening. On JConsole everything is working fine.