{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/808","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/808/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/808/events","html_url":"https://github.com/serverless/serverless/issues/808","id":141240134,"number":808,"title":"Use v8 options to limit memory usage based on Lambda configuration","user":{"login":"patoncrispy","id":2559414,"avatar_url":"https://avatars.githubusercontent.com/u/2559414?v=3","gravatar_id":"","url":"https://api.github.com/users/patoncrispy","html_url":"https://github.com/patoncrispy","followers_url":"https://api.github.com/users/patoncrispy/followers","following_url":"https://api.github.com/users/patoncrispy/following{/other_user}","gists_url":"https://api.github.com/users/patoncrispy/gists{/gist_id}","starred_url":"https://api.github.com/users/patoncrispy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patoncrispy/subscriptions","organizations_url":"https://api.github.com/users/patoncrispy/orgs","repos_url":"https://api.github.com/users/patoncrispy/repos","events_url":"https://api.github.com/users/patoncrispy/events{/privacy}","received_events_url":"https://api.github.com/users/patoncrispy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T11:11:14Z","updated_at":"2016-05-12T11:41:12Z","closed_at":"2016-05-12T11:41:12Z","body":"I have no idea if this is possible and am only just starting to dig, so please correct me if I get anything wrong here. Would it be possible for Serverless to limit memory usage when running functions based on the memory size set in s-function.json using the v8 options like `--max-old-space-size` or `--max-executable-size`? I've been using the serverless-offline plugin to test my API and Lambda methods coupled with the amazing dynalite to test DynamoDB integration, but it would be fantastic if there were also some way to test memory limitation requirements without having to deploy to AWS every time.\r\n\r\nI would be happy to help with this, but not sure where to start looking or if this is even possible, so if someone with a greater awareness of this could shed some light, I would greatly appreciate it."},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/218733024","html_url":"https://github.com/serverless/serverless/issues/808#issuecomment-218733024","issue_url":"https://api.github.com/repos/serverless/serverless/issues/808","id":218733024,"user":{"login":"flomotlik","id":132653,"avatar_url":"https://avatars.githubusercontent.com/u/132653?v=3","gravatar_id":"","url":"https://api.github.com/users/flomotlik","html_url":"https://github.com/flomotlik","followers_url":"https://api.github.com/users/flomotlik/followers","following_url":"https://api.github.com/users/flomotlik/following{/other_user}","gists_url":"https://api.github.com/users/flomotlik/gists{/gist_id}","starred_url":"https://api.github.com/users/flomotlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flomotlik/subscriptions","organizations_url":"https://api.github.com/users/flomotlik/orgs","repos_url":"https://api.github.com/users/flomotlik/repos","events_url":"https://api.github.com/users/flomotlik/events{/privacy}","received_events_url":"https://api.github.com/users/flomotlik/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T11:41:12Z","updated_at":"2016-05-12T11:41:12Z","body":"@patoncrispy I don't think we're going to implement this in the core of serveless, as its a niche feature, but if you would like to contribute it as a plugin we'd be interested to take a look. Going to close this issue for now though, let us know if you keep digging into this and have something to share."}}