Questions Tagged With enginehttps://answers.axonivy.com/tags/engine/?type=rss&user=Genzer%20Hawkerquestions tagged <span class="tag">engine</span>enFri, 16 Oct 2015 11:06:17 -0400VisualVM's Memory Sampler is inactive for Axon.ivy Engine running as WIndows Servicehttps://answers.axonivy.com/questions/1516/visualvm-s-memory-sampler-is-inactive-for-axon-ivy-engine-running-as-windows-service<p>We have an Axon.ivy Engine running as a Window Service. The version of the Axon.ivy we are using is 5.1.4.48243. We intentionally installed JDK 1.7.0_60 in order to use the VisualVM to monitor and investigate some memory issue. The Axon.ivy Engine is configured with JMX port.</p> <p>We are able to view the Axon.ivy Enigne application in the VisualVM but the Memory Sampler is rendered inactive and the notification given to us is:</p> <p><code>Memory sampling: Not available. Cannot connect to target application. Make sure the application is running on a supported JDK 6 or JDK 7.</code></p> <p>If we run the Axon.ivy Engine as a non-service, everything works.</p> <p>We looked into the Axon.ivy Engine and discovered that it included a JRE inside which was also 1.7.0_60. We tried to configure the argument <code>ivy.dir.jre</code> to the JDK's <code>jre</code> but it still didn't work.</p> <p>We also discovered that the file <code>jre/bin/server/jvm.dll</code> in the JDK and the Axon.ivy Engine's JRE were different (using SHA-1 checksume) despite everything looks the same on the surface.</p> <p>The questions are:</p> <ul> <li>Is it possible to use Memory Sampler on VisualVM to the Axon.ivy Engine running as a Windows Service? How?</li> <li>Why we cannot start the Axon.ivy Engine when we change the argument <code>ivy.dir.jre</code>?</li> </ul> <p>Thanks</p> <p><strong>UPDATE</strong></p> <p>I managed to find a way to start both Axon.ivy Engine service and VisualVM both under Local System account using <a href="http://stackoverflow.com/questions/77528/how-do-you-run-cmd-exe-under-the-local-system-account">PSTools</a>. However, the result is still the same, the Memory Sampler is still inactive.</p> <p><img alt="VisualVM and Axon.ivy Engine service are both started under Local System account" src="http://s27.postimg.org/byxe5nb0j/visual_vm_and_axonivy_service_both_started_as_sy.png"> <img alt="Axon.ivy Engine JVM details" src="http://s27.postimg.org/8qswsloqr/axon_ivy_engine_jvm_details.png"> <img alt="VisualVM JVM details" src="http://s27.postimg.org/o22pt7m2r/visual_vm_jvm_details.png"></p>Genzer HawkerFri, 16 Oct 2015 11:06:17 -0400https://answers.axonivy.com/questions/1516/visualvm-s-memory-sampler-is-inactive-for-axon-ivy-engine-running-as-windows-serviceaxon.ivyenginevisualvmjdkHow to start the Ivy Server in plain Java?https://answers.axonivy.com/questions/1187/how-to-start-the-ivy-server-in-plain-java<p>There are several questions regarding how to access to Ivy environment JUnit tests but there is no elegant solution so far.</p> <p>In Ivy Designer, if I start the Ivy Server and then start run JUnit tests, the Ivy Server will be automatically stopped. I'm trying to find a way to avoid this (and not sure if there is).</p> <p>I'm trying to implement a JUnit <code>TestRunner</code> which could start the Ivy Server programmatically but as of now, I don't know the way. What I could found is:</p> <p><code>IServer server = ServerFactory.createEclipseEmbeddedTestServer(); server.start(null); &lt;-- stuck here since I don't know how to instantiate IProgressMonitor</code></p> <p>My questions are:</p> <ul> <li>Is it possible to configure and run JUnit tests in designer along with the engine?</li> <li>How can we programmatically start a server?</li> </ul> <p>Thanks &amp; Best Regards</p>Genzer HawkerMon, 02 Mar 2015 11:11:00 -0500https://answers.axonivy.com/questions/1187/how-to-start-the-ivy-server-in-plain-javaenginetestjunitivy