Azure函数上的NodeJS运行时标志 [英] NodeJS runtime flags on azure functions

查看:86
本文介绍了Azure函数上的NodeJS运行时标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NodeJS允许用户使用`--max-old-space-size`标志分配更多的堆空间.我想知道是否有可能将这样的标志传递给运行Azure函数的节点,因为我得到了堆满了内存"的提示.

解决方案

你好,

我在"iis  nodejs 服务器 设置"中搜索了Google并通过iisnode.yml文件找到了有关优化Azure AppService上的nodejs的文章: 配置和在azure AppService中优化您的nodejs应用
这是一个很好的文档: 通过标记到Azure Web Apps中的NodeJS的Chrome V8引擎

良好的编码;



NodeJS lets users assign more heap space with the `--max-old-space-size` flag. I was wondering if it's possible to pass such flags to an Azure function running node since I'm getting "heap out of memory" exceptions.

解决方案

Hello,

I googled on "iis nodejs server settings" and found articles on optimizing nodejs on Azure AppService and thus through the iisnode.yml file: Configuring & optimizing your nodejs app in an azure AppService
here is a good document: Best practices and troubleshooting guide for node applications on Azure Web Apps
and here is the solution in this thread: Pass flags to NodeJS's Chrome V8 engine in Azure Web Apps 

Good Coding;



这篇关于Azure函数上的NodeJS运行时标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆