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 559ae64e38
commit 8a50a69a92
+2
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),