<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 1, 2015 at 2:31 PM, Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:manderse@redhat.com" target="_blank">manderse@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":22k" class="" style="overflow:hidden">okey, so that explain why you like the scripts - these issues manifests itself most on windows ;)<br>
<br>
so how do you handle running two servers ? it kills all of them ?<br>
<br>
got a link to the exact code you use ?</div></blockquote></div><br></div><div class="gmail_extra">If it based on that ServerKiller extension than <br></div><div class="gmail_extra">look at <a href="https://github.com/wildfly/wildfly-arquillian/blob/master/protocol-jmx/src/main/java/org/jboss/as/arquillian/protocol/jmx/ServerKillerExtension.java#L106">https://github.com/wildfly/wildfly-arquillian/blob/master/protocol-jmx/src/main/java/org/jboss/as/arquillian/protocol/jmx/ServerKillerExtension.java#L106</a><br></div><div class="gmail_extra">and see killLinux(Runtime) and killWindows(Runtime) methods<br><br></div><div class="gmail_extra">This code was written to kill all leftover jboss/wildfly processes after arquillian test run and as such kills all such processes.<br><br></div><div class="gmail_extra">Said all that, it is quite simple to modify it to suite what ever need you have.<br><br></div><div class="gmail_extra">powershell command for getting all processes to kill is <br><span class=""><span class=""></span><br>gwmi win32_process -filter <span class="">&quot;</span>name=&#39;java.exe&#39; and commandLine like &#39;%jboss-modules%&#39; <span class="">&quot; <br></span></span></div><div class="gmail_extra"><span class=""><span class=""><br>but that could be further filtered for the needs you might have<br></span></span></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>