Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit bf8218a

Browse files
increase memeory limit to 1024 MB before restarting process
1 parent c3e845b commit bf8218a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ENV API_PORT=3030
1818
# start the application in a autohealing cluster
1919
# NOTE: quick fix for server issues, restart api when reaching max of 300 MB Memory Usage (happens in conjunction with 100% CPU Usage)
2020
# TODO: find better way of dealing with that issue
21-
CMD NODE_ENV=production pm2 start server/index.js -n api --attach --max-memory-restart 300M
21+
CMD NODE_ENV=production pm2 start server/index.js -n api --attach --max-memory-restart 1024M
2222
# CMD NODE_ENV=production pm2 start server/index.js -n api -i 2 --attach
2323
# as we have issues with pm2 currently in conjunction with nuxt, we use the standard approach here
2424
# CMD NODE_ENV=production node server/index.js

0 commit comments

Comments
 (0)