Skip to content

Commit

Permalink
introduce memory limits (in tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtnord committed May 14, 2024
1 parent e442a81 commit 76669ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-Xmx256m -XX:+HeapDumpOnOutOfMemoryError -XX:+TieredCompilation -XX:TieredStopAtLevel=1
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ THE SOFTWARE.
<spotbugs.effort>Max</spotbugs.effort>
<spotbugs.threshold>Low</spotbugs.threshold>
<bc-version>1.78.1</bc-version>
<argLine>-Xms256M -Xmx256M -XX:+TieredCompilation -XX:TieredStopAtLevel=1</argLine>
</properties>

<dependencies>
Expand Down
1 change: 1 addition & 0 deletions src/test/java/hudson/remoting/ForkRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected List<String> buildCommandLine() {
String cp = getClasspath();

List<String> r = new ArrayList<>();
r.add("-Xmx128M");
r.add("-cp");
r.add(cp);
r.add(Launcher.class.getName());
Expand Down

0 comments on commit 76669ac

Please sign in to comment.