什么是“内存不足错误"?在Google Apps脚本中引用? [英] What does "Out of memory error" refer to in Google Apps Script?

查看:46
本文介绍了什么是“内存不足错误"?在Google Apps脚本中引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当Google Apps脚本功能失败并返回内存不足错误"时,该指的是什么?

When a Google Apps Script function fails and returns "Out of memory error", what does that refer to?

代码是否已达到特定变量的最大内存?这与缓存服务有关吗?这与脚本数据库服务有关吗?这是否与脚本自身的整体内存,已处理和计算的所有数据的组合有关?

Has the code reached a memory max for a particular variable? Does this have to do with the Cache Service? Does this have to do with the Script Database service? Does this have to do with the overall memory of script it self, combination of all the data processed and calculated?

我没有找到有关此错误及其含义的信息.

I have found no information on this error and what it refers to.

任何帮助将不胜感激.

Any help would be greatly appreciated.

关于, 詹姆斯

推荐答案

我遇到的相同错误是由于变量的大小超出了允许的范围(尽管我不知道最大允许的大小是多少).因此,我相信它是达到特定变量的内存最大值"的情况.我使用的解决方法是改为在Google文档中写入数据流.它简单而有效,没有任何麻烦.

The same error I had faced was due to a variable increased in size more than permitted (Although I am not aware what the maximum permitted size is). So I believe its the "memory max for a particular variable reached" case. The workaround I used was to write the stream of data in a google doc instead. Its simple and works without any troubles.

Google Apps脚本的行为有时(至少对我而言)是在欺骗.在其错误消息中未观察到一致性.可能是您身上发生的其中一种情况.

The behavior of Google Apps Script is deceiving (at least for me) at times, ie. not observed consistency in its error messages. Probably one of those instances occurring with you.

这篇关于什么是“内存不足错误"?在Google Apps脚本中引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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