Set app memory limit to 200MB (includes 100 MB swap)

This commit is contained in:
Girish Ramakrishnan
2015-08-24 21:40:48 -07:00
parent 288de7e03a
commit dd6b8face9

View File

@@ -333,6 +333,8 @@ function startContainer(app, callback) {
var startOptions = {
Binds: addons.getBindsSync(app, app.manifest.addons),
Memory: 1024 * 1024 * 100,
MemorySwap: 1024 * 1024 * 200, // Memory + Swap
PortBindings: dockerPortBindings,
PublishAllPorts: false,
Links: addons.getLinksSync(app, app.manifest.addons),