DRILL-6144: Make direct memory amount configurable in tests. This closes #1118
Project: http://git-wip-us.apache.org/repos/asf/drill/repo Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/7b49be6a Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/7b49be6a Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/7b49be6a Branch: refs/heads/master Commit: 7b49be6af1bf8fc906b6d56ea5805ba2f9756127 Parents: f0bd129 Author: Timothy Farkas <timothyfar...@apache.org> Authored: Thu Feb 8 16:25:23 2018 -0800 Committer: Parth Chandra <par...@apache.org> Committed: Fri Feb 9 14:30:19 2018 +0530 ---------------------------------------------------------------------- .travis.yml | 2 +- pom.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/drill/blob/7b49be6a/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index a2f5bd8..44ad501 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ cache: directories: - "$HOME/.m2" install: MAVEN_OPTS="-Xms1G -Xmx1G" mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -script: mvn install -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest,org.apache.drill.categories.SecurityTest" -DforkCount=1 -DmemoryMb=3584 +script: mvn install -DexcludedGroups="org.apache.drill.categories.SlowTest,org.apache.drill.categories.UnlikelyTest,org.apache.drill.categories.SecurityTest" -DforkCount=1 -DmemoryMb=2560 -DdirectMemoryMb=4608 http://git-wip-us.apache.org/repos/asf/drill/blob/7b49be6a/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 9b2a368..200b44a 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,7 @@ <reflections.version>0.9.8</reflections.version> <excludedGroups></excludedGroups> <memoryMb>4096</memoryMb> + <directMemoryMb>4096</directMemoryMb> </properties> <scm> @@ -468,7 +469,7 @@ -Dorg.apache.drill.exec.server.Drillbit.system_options="org.apache.drill.exec.compile.ClassTransformer.scalar_replacement=on" -Ddrill.test.query.printing.silent=true -Ddrill.catastrophic_to_standard_out=true - -XX:MaxPermSize=512M -XX:MaxDirectMemorySize=4096M + -XX:MaxPermSize=512M -XX:MaxDirectMemorySize=${directMemoryMb}M -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -XX:+CMSClassUnloadingEnabled -ea