8207745: serviceability/sa/TestJmapCore.java times out parsing a 4GB hprof file
authorsballal
Fri, 28 Sep 2018 14:31:58 +0530
changeset 51946 7bd8d6b011c9
parent 51945 c573d2633417
child 51947 2d980757fd07
8207745: serviceability/sa/TestJmapCore.java times out parsing a 4GB hprof file Reviewed-by: dholmes, jgeorge
test/hotspot/jtreg/serviceability/sa/ClhsdbCDSCore.java
test/hotspot/jtreg/serviceability/sa/TestHeapDumpForInvokeDynamic.java
test/hotspot/jtreg/serviceability/sa/TestJmapCore.java
--- 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();