How can I connect from VisualVM to Xpert.ivy Server running as Windows Service? It is not displayed in the list of running local java applications in VisualVM.

asked 11.10.2013 at 17:40

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.6k172450
accept rate: 74%


VisualVM only displays java application that are running within the same user like VisualVM. Because Windows Services are running within a special system user, Xpert.ivy Server running as Windows Service is not visible by default.

However, you can setup JMX (Java Management Extension) on Xpert.ivy Server so that you can connect from VisualVM to Xpert.ivy Server running as Windows Service using the JMX Connector.

To configure JMX on Xpert.ivy Server Windows Service do the following steps:

  1. Navigate to the bin directory inside the Xpert.ivy Server installation directory
  2. Copy the Example.ilc file to XpertIvyServerService.ilc
  3. Open the file XpertIvyServerService.ilc in a text editor and add the line below to enable JMX.
  4. Restart the Xpert.ivy Server Windows Service

Add the following line to the *.ilc file to enable JMX:

ivy.vm.additional.options=-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999

To connect from VisualVM to the Xpert.ivy Server Windows Service do the following steps:

  1. In VisualVM press the button Add JMX Connection in the toolbar
  2. In the appearing dialog configure localhost:9999 as connection
  3. Press the OK button
  4. The additional JMX connection appears in the list of java applications. Double click it to open it.

Note, that JMX is not secured by this configuration. Everybody with network access to your machine can establish a remote JMX connection to your Xpert.ivy Server Windows Service.

In the next Xpert.ivy Version called Lauberhorn the configuration of JMX is much easier. You simple have to add the following line to the *.ilc file:

ivy.management.port=9999

The connection is also protected by a user name and password. Only Xpert.ivy system administrators can establish establish a JMX connection with their credentials.

More Information about VisualVM can be found here: VisualVM Homepage
More Information about JMX can be found here: Oracle JMX Guide

link

answered 11.10.2013 at 17:50

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.6k172450
accept rate: 74%

edited 17.10.2013 at 08:33

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5

Asked: 11.10.2013 at 17:40

Seen: 1,535 times

Last updated: 17.10.2013 at 08:33