8207745: serviceability/sa/TestJmapCore.java times out parsing a 4GB hprof file
Reviewed-by: dholmes, jgeorge
--- a/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java Fri Sep 28 10:57:31 2018 +0200
+++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java Fri Sep 28 14:31:58 2018 +0530
@@ -79,6 +79,7 @@
CDSTestUtils.createArchiveAndCheck(opts);
String[] jArgs = {
+ "-Xmx512m",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:SharedArchiveFile=" + SHARED_ARCHIVE_NAME,
"-XX:+CreateCoredumpOnCrash",
--- a/test/hotspot/jtreg/serviceability/sa/TestHeapDumpForInvokeDynamic.java Fri Sep 28 10:57:31 2018 +0200
+++ b/test/hotspot/jtreg/serviceability/sa/TestHeapDumpForInvokeDynamic.java Fri Sep 28 14:31:58 2018 +0530
@@ -123,6 +123,7 @@
try {
List<String> vmArgs = new ArrayList<String>();
vmArgs.add("-XX:+UsePerfData");
+ vmArgs.add("-Xmx512m");
vmArgs.addAll(Utils.getVmOptions());
theApp = new LingeredAppWithInvokeDynamic();
--- a/test/hotspot/jtreg/serviceability/sa/TestJmapCore.java Fri Sep 28 10:57:31 2018 +0200
+++ b/test/hotspot/jtreg/serviceability/sa/TestJmapCore.java Fri Sep 28 14:31:58 2018 +0530
@@ -87,7 +87,7 @@
static void test(String type) throws Throwable {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(true, "-XX:+CreateCoredumpOnCrash",
- "-XX:MaxMetaspaceSize=64m", "-XX:+CrashOnOutOfMemoryError",
+ "-Xmx512m", "-XX:MaxMetaspaceSize=64m", "-XX:+CrashOnOutOfMemoryError",
TestJmapCore.class.getName(), type);
boolean useDefaultUlimit = useDefaultUlimit();