[
https://issues.apache.org/jira/browse/DRILL-6076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324461#comment-16324461
]
ASF GitHub Bot commented on DRILL-6076:
---------------------------------------
Github user kkhatua commented on the issue:
https://github.com/apache/drill/pull/1086
I think folks running unit tests can continue with the existing limits of
4GB heap+4GB Direct. The idea is to get Drill up and running for minimal use
cases, and you are expected to bump up memory to higher limits if queries get
OOM errors. Unit tests, if carrying any tests that require much more memory,
would qualify under this.
I've launched a
[fork](https://github.com/kkhatua/drill/commits/LowerMemUnitTest) of this
branch with reduced memory settings for the unit tests as well and letting
TravisCI test it out:
https://travis-ci.org/kkhatua/drill/builds/328250155
If it passes, we can either reduce those settings in the POM files as well,
or leave it intact to ensure developers doing unit tests are able to run the
tests in a reasonable amount of time.
> Reduce the default memory from a total of 13GB to 5GB
> -----------------------------------------------------
>
> Key: DRILL-6076
> URL: https://issues.apache.org/jira/browse/DRILL-6076
> Project: Apache Drill
> Issue Type: Task
> Reporter: Kunal Khatua
> Assignee: Kunal Khatua
> Priority: Critical
> Fix For: 1.13.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently, the default memory requirements for Drill are about 13GB, with the
> following allocations:
> * 4GB Heap
> * 8GB Direct Memory
> * 1GB CodeCache
> * 512MB MaxPermSize
> Also, with Drill 1.12.0, the recommendation is to move to JDK8, which makes
> the MaxPermSize as irrelevant.
> With that, the default requirements total to 13GB, which is rather high. This
> is especially a problem for scenarios where people are trying out Drill and
> might be using this in a development environment where 13GB is too high.
> When using the public [test
> framework|https://github.com/mapr/drill-test-framework/] for Apache Drill, it
> was observed that the framework's functional and unit tests passed
> successfully with memory as little as 5GB; based on the following allocation:
> * 1GB Heap
> * 3GB Direct Memory
> * 512MB CodeCache
> * 512MB MaxPermSize
> Based on this finding, the proposal is to reduce the defaults from the
> current settings to the values just mentioned above. The drill-env.sh file
> already has details in the comments, along with the recommended values that
> reflect the original 13GB defaults.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)