On Thu, Oct 1, 2015 at 2:31 PM, Max Rydahl Andersen <manderse@redhat.com> wrote:
okey, so that explain why you like the scripts - these issues manifests itself most on windows ;)

so how do you handle running two servers ? it kills all of them ?

got a link to the exact code you use ?

If it based on that ServerKiller extension than
look at https://github.com/wildfly/wildfly-arquillian/blob/master/protocol-jmx/src/main/java/org/jboss/as/arquillian/protocol/jmx/ServerKillerExtension.java#L106
and see killLinux(Runtime) and killWindows(Runtime) methods

This code was written to kill all leftover jboss/wildfly processes after arquillian test run and as such kills all such processes.

Said all that, it is quite simple to modify it to suite what ever need you have.

powershell command for getting all processes to kill is

gwmi win32_process -filter "name='java.exe' and commandLine like '%jboss-modules%' "

but that could be further filtered for the needs you might have