You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/12/23 08:35:11 UTC
[GitHub] Liu-HongYe opened a new pull request #104: Dynamically setting the
memory limit of the Nodejs VM
Liu-HongYe opened a new pull request #104: Dynamically setting the memory limit of the Nodejs VM
URL: https://github.com/apache/incubator-openwhisk-runtime-nodejs/pull/104
The Nodejs VM in the container does not set the memory size limit, which causes the Nodejs VM to use the default size of memory. At this time, if the function sets the 256MB memory limit, the GC operation cannot be performed in time when the memory uses 256MB. The container is killed.
And in the case of the Prewarm container, the memory used by the last call cannot be recycled in time, so the new call available memory is drastically reduced.
I recommend dynamically setting the memory limit of the Nodejs VM by reading the Cgroup configuration during the container startup process.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services