HBASE-24134 Down forked JVM heap size from 2800m to 2200m for jdk8 and jdk11 (#1451) (#1503)

Down jdk8 forked jvm heap from 2800 to 2200 and the jdk11 heap from
3200 to 2200. Down the mvn size from 4G to 3.6G

Change how many puts done by TestMultiRespectsLimits because made
the test run the forked heap over 2.5G in size.

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Michael Stack 2020-04-13 21:35:43 -07:00 committed by GitHub
parent 35ea4acf48
commit 5f08311b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

View File

@ -178,7 +178,7 @@ RUN mkdir -p /usr/lib/jvm && \
# TODO (nd): is this really true? investigate and file a ticket.
ENV SPOTBUGS_HOME '/opt/spotbugs'
ENV MAVEN_HOME '/opt/maven'
ENV MAVEN_OPTS '-Xmx4G'
ENV MAVEN_OPTS '-Xmx3.6G'
CMD ["/bin/bash"]

View File

@ -64,7 +64,7 @@ public class TestMultiRespectsLimits {
private static final MetricsAssertHelper METRICS_ASSERT =
CompatibilityFactory.getInstance(MetricsAssertHelper.class);
private final static byte[] FAMILY = Bytes.toBytes("D");
public static final int MAX_SIZE = 500;
public static final int MAX_SIZE = 100;
@Rule
public TestName name = new TestName();

14
pom.xml
View File

@ -1605,11 +1605,11 @@
<surefire.timeout>900</surefire.timeout>
<test.exclude.pattern></test.exclude.pattern>
<!--
default Xmx value is 2800m. Use -Dsurefire.Xmx=xxg to run tests with different JVM Xmx value.
this value is managed separately for jdk11.
Use -Dsurefire.Xmx=xxg to run tests with different JVM Xmx value.
This value is managed separately for jdk11. See below.
-->
<surefire.Xmx>2800m</surefire.Xmx>
<surefire.cygwinXmx>2800m</surefire.cygwinXmx>
<surefire.Xmx>2200m</surefire.Xmx>
<surefire.cygwinXmx>2200m</surefire.cygwinXmx>
<!--Mark our test runs with '-Dhbase.build.id' so we can identify a surefire test as ours in a process listing
And for netty eventloops that have no explicit configuration, netty sets
@ -2407,12 +2407,10 @@
<!-- We need a minimum HDFS version of 3.2.0 for HADOOP-12760 -->
<hadoop-three.version>3.2.0</hadoop-three.version>
<!--
JDK11 appears to consume more heap than JDK8 does; OOME are more common in
-PrunLargeTests on this platform. Bump up heap allocated to tests (current default for
JDK8 is 2800m.
Value to use for surefire when running jdk11.
TODO: replicate logic for windows
-->
<surefire.Xmx>3200m</surefire.Xmx>
<surefire.Xmx>2200m</surefire.Xmx>
</properties>
<build>
<plugins>