Skip to content

Commit 623bc8c

Browse files
authored
Merge branch 'master' into noReconnectAfter
2 parents a3004af + 19e2927 commit 623bc8c

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.mvn/jvm.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Xmx256m -XX:+HeapDumpOnOutOfMemoryError -XX:+TieredCompilation -XX:TieredStopAtLevel=1

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ THE SOFTWARE.
6565
<spotbugs.effort>Max</spotbugs.effort>
6666
<spotbugs.threshold>Low</spotbugs.threshold>
6767
<bc-version>1.78.1</bc-version>
68+
<argLine>-Xms256M -Xmx256M -XX:+TieredCompilation -XX:TieredStopAtLevel=1</argLine>
6869
</properties>
6970

7071
<dependencies>

src/test/java/hudson/remoting/ForkRunner.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ protected List<String> buildCommandLine() {
2222
String cp = getClasspath();
2323

2424
List<String> r = new ArrayList<>();
25+
r.add("-Xmx128M");
2526
r.add("-cp");
2627
r.add(cp);
2728
r.add(Launcher.class.getName());
@@ -61,13 +62,7 @@ public String getName() {
6162
}
6263

6364
public String getClasspath() {
64-
// this assumes we run in Maven
65-
StringBuilder buf = new StringBuilder();
66-
for (String entry : System.getProperty("java.class.path").split(":")) {
67-
if (buf.length()>0) buf.append(File.pathSeparatorChar);
68-
buf.append(entry);
69-
}
70-
return buf.toString();
65+
return System.getProperty("java.class.path");
7166
}
7267

7368
@Override

0 commit comments

Comments
 (0)