提交 c0e5d275 编写于 作者: S StephanEwen

Adjust tests LocalDistributedExecutor for low memory settings on build servers.

上级 385b42d9
......@@ -68,6 +68,16 @@ public class LocalDistributedExecutor extends PlanExecutor {
// we need to down size the memory. determine the memory and divide it by the number of task managers
long javaMem = HardwareDescriptionFactory.extractFromSystem().getSizeOfFreeMemory();
// at this time, we need to scale down the memory, because we cannot dedicate all free memory to the
// memory manager. we have to account for the buffer pools as well, and the job manager#s data structures
long bufferMem = GlobalConfiguration.getLong(ConfigConstants.TASK_MANAGER_NETWORK_NUM_BUFFERS_KEY,
ConfigConstants.DEFAULT_TASK_MANAGER_NETWORK_NUM_BUFFERS) *
GlobalConfiguration.getLong(ConfigConstants.TASK_MANAGER_NETWORK_BUFFER_SIZE_KEY,
ConfigConstants.DEFAULT_TASK_MANAGER_NETWORK_BUFFER_SIZE);
javaMem = (long) (0.8 * (javaMem - bufferMem));
javaMem /= numTaskMgr;
// convert memory from bytes to megabytes
......
......@@ -48,7 +48,7 @@ public abstract class AbstractTestBase {
private static final int MINIMUM_HEAP_SIZE_MB = 192;
private static final long TASK_MANAGER_MEMORY_SIZE = 96;
private static final long TASK_MANAGER_MEMORY_SIZE = 80;
protected final Configuration config;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册