Question: how add jmx connection to visualvm?
Answer: Start Java VisualVM on the same machine. In Java VisualVM's Applications window, right click on the Local machine and select 'Add JMX Connection'. The Add JMX Connection dialog box opens. The host name localhost is already filled in.