diff --git a/src/MemoryManager.js b/src/MemoryManager.js index d49df02..3797800 100644 --- a/src/MemoryManager.js +++ b/src/MemoryManager.js @@ -21,9 +21,7 @@ export class MemoryManager { #init(nexusConfig) { this.memoryLimit = nexusConfig.getNested(NexusPropertiesConstants.MEMORY_LIMIT); - if (this.memoryLimit <= 0) { - Process.setMemoryLimit(-1); - } else { + if (this.memoryLimit > 0) { Process.setMemoryLimit(this.memoryLimit); } }