<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Use VisualVM with Xpert.ivy Server running as Windows Service?</title><link>https://answers.axonivy.com/questions/27/use-visualvm-with-xpert-ivy-server-running-as-windows-service</link><description>&lt;p&gt;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.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/27/use-visualvm-with-xpert-ivy-server-running-as-windows-service" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 22 Oct 2019 06:25:47 -0400</lastBuildDate><item><title>Answer by nvtan</title><link>https://answers.axonivy.com/questions/27/use-visualvm-with-xpert-ivy-server-running-as-windows-service/4122</link><description>&lt;p&gt;Hi Reto,&lt;/p&gt;
&lt;p&gt;I am using VisualVM1.4.2 to connect to Engine version 7.0.11 but failed, my configuration is:&lt;/p&gt;
&lt;p&gt;1.File AxonIvyEngine.ilc (also tried with name AxonIvyEngineConfig.ilc and XpertIvyServerService.ilc)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ivy.management.port=8085
 (this port i am runing my application)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;2.VisualVM Add JMX connection&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Connection:10.123.0.174:8085&lt;/li&gt;
&lt;li&gt;Cridential: by username/pass which is used to remote to server engine&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Message recieved:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cannot connect to Administrator@10.123.0.174:8085 using service:jmx:rmi:///jndi/&lt;a&gt;rmi://10.123.0.174:8085/jmxrmi&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;Thanks
Tan&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nvtan</dc:creator><pubDate>Tue, 22 Oct 2019 06:25:47 -0400</pubDate><guid>https://answers.axonivy.com/questions/27/use-visualvm-with-xpert-ivy-server-running-as-windows-service/4122</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/27/use-visualvm-with-xpert-ivy-server-running-as-windows-service/28</link><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;To configure JMX on Xpert.ivy Server Windows Service do the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to the bin directory inside
    the Xpert.ivy Server installation
    directory&lt;/li&gt;
&lt;li&gt;Copy the Example.ilc file to
    XpertIvyServerService.ilc&lt;/li&gt;
&lt;li&gt;Open the file XpertIvyServerService.ilc in a text
    editor and add the line below to
    enable JMX.   &lt;/li&gt;
&lt;li&gt;Restart the Xpert.ivy Server Windows
    Service&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Add the following line to the *.ilc file to enable JMX:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ivy.vm.additional.options=-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To connect from VisualVM to the Xpert.ivy Server Windows Service do the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In VisualVM press the button &lt;em&gt;Add
    JMX Connection&lt;/em&gt; in the toolbar&lt;/li&gt;
&lt;li&gt;In the appearing dialog configure &lt;em&gt;localhost:9999&lt;/em&gt; as connection&lt;/li&gt;
&lt;li&gt;Press the &lt;em&gt;OK&lt;/em&gt; button&lt;/li&gt;
&lt;li&gt;The additional JMX connection appears in the list of java
    applications. Double click it to
    open it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;In the next Xpert.ivy Version called &lt;em&gt;Lauberhorn&lt;/em&gt; the configuration of JMX is much easier. You simple have to add the following line to the *.ilc file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ivy.management.port=9999
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;More Information about VisualVM can be found here:
&lt;a href="http://visualvm.java.net/"&gt;VisualVM Homepage&lt;/a&gt; &lt;br&gt;
More Information about JMX can be found here:
&lt;a href="http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html"&gt;Oracle JMX Guide&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Fri, 11 Oct 2013 17:50:21 -0400</pubDate><guid>https://answers.axonivy.com/questions/27/use-visualvm-with-xpert-ivy-server-running-as-windows-service/28</guid></item></channel></rss>