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.9k192756
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.9k192756
accept rate: 74%

edited 17.10.2013 at 08:33

Hi Reto,

I am using VisualVM1.4.2 to connect to Engine version 7.0.11 but failed, my configuration is:

1.File AxonIvyEngine.ilc (also tried with name AxonIvyEngineConfig.ilc and XpertIvyServerService.ilc)

  • ivy.management.port=8085 (this port i am runing my application)

2.VisualVM Add JMX connection

  • Connection:10.123.0.174:8085
  • Cridential: by username/pass which is used to remote to server engine

Message recieved:

Question: Can you please help to correct me if i am wrong in any step? With engine 7.0.11 do we need config line for ivy.vm.additional.options or something else? (I even tried this line) For adding JMX connection, it should be 10.123.0.174:8085 instead of localhost:8085 as you mentioned above?

Thanks Tan

link

answered 22.10.2019 at 06:25

nvtan's gravatar image

nvtan
111
accept rate: 0%

Hi Tan Do you use 8085 also as your http port? The management port must be another port than your http port. Try 9999 for example.

(22.10.2019 at 07:50) Reto Weiss ♦♦ Reto%20Weiss's gravatar image
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: 2,070 times

Last updated: 22.10.2019 at 07:50