equal
deleted
inserted
replaced
46 * |
46 * |
47 * The Application will write its pid and shutdownPort in the given outFile. |
47 * The Application will write its pid and shutdownPort in the given outFile. |
48 */ |
48 */ |
49 public static ProcessThread startApplication(String... additionalOpts) throws Throwable { |
49 public static ProcessThread startApplication(String... additionalOpts) throws Throwable { |
50 String classpath = System.getProperty("test.class.path", "."); |
50 String classpath = System.getProperty("test.class.path", "."); |
51 String[] myArgs = concat(additionalOpts, new String [] { "-XX:+UsePerfData", "-Dattach.test=true", "-classpath", classpath, "Application" }); |
51 String[] myArgs = concat(additionalOpts, new String [] { |
|
52 "-XX:+UsePerfData", "-XX:+EnableDynamicAgentLoading", |
|
53 "-Dattach.test=true", "-classpath", classpath, "Application" |
|
54 }); |
52 String[] args = Utils.addTestJavaOpts(myArgs); |
55 String[] args = Utils.addTestJavaOpts(myArgs); |
53 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(args); |
56 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(args); |
54 ProcessThread pt = new ProcessThread("runApplication", (line) -> line.equals(Application.READY_MSG), pb); |
57 ProcessThread pt = new ProcessThread("runApplication", (line) -> line.equals(Application.READY_MSG), pb); |
55 pt.start(); |
58 pt.start(); |
56 return pt; |
59 return pt; |