问题描述
我已经在AWS Cloud9中使用Python Lambda函数创建了一个环境.一切正常,几天来我一直在添加功能.但是有一天环境无法打开.加载几分钟后,它显示一条错误消息:
I have created an environment in AWS Cloud9 with a Python Lambda function.This was working fine and for several days I was adding functionality.However one day the environment failed to open. After several minutes of loading it displayed an error message:
我查看了建议的链接,但我认为VPC不是问题所在.我没有对其进行任何更改.而且,我能够创建新环境并打开它们.
I looked at the suggested link, but I don't think the VPC is the issue. I didn't make any changes to it. Moreover I am able to make new environments and open them.
有什么办法解决这个问题吗?
Any ideas how to solve this?
推荐答案
原来的问题是用于运行Cloud9的默认t2.micro(1 GiB RAM)实例.我可能内存不足.将我的环境移至t2.small(2 GiB RAM)可以解决问题.
Turns out the problem was the default t2.micro (1 GiB RAM) instance that is used to run Cloud9. I was probably running out of memory. Moving my environment to t2.small (2 GiB RAM) solved the problem.
有关移动环境的文档: https://docs.aws.amazon.com/cloud9/latest/user-guide/move-environment.html
Documentation on moving environments:https://docs.aws.amazon.com/cloud9/latest/user-guide/move-environment.html
这篇关于AWS Cloud9:无法打开环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!