File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
src/test/java/hudson/remoting Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1+ -Xmx256m -XX:+HeapDumpOnOutOfMemoryError -XX:+TieredCompilation -XX:TieredStopAtLevel=1
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments