Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Cloud9应用程序内存和磁盘空间限制_Ruby On Rails_Bash_Railstutorial.org_Cloud9 Ide - Fatal编程技术网

Ruby on rails Cloud9应用程序内存和磁盘空间限制

Ruby on rails Cloud9应用程序内存和磁盘空间限制,ruby-on-rails,bash,railstutorial.org,cloud9-ide,Ruby On Rails,Bash,Railstutorial.org,Cloud9 Ide,我正在使用Cloud9IDE阅读第6章Michael Hartl教程[www.railstutorial.org/book],由于内存限制,服务器已停止运行。我使用的是512MB内存附带的免费层。我尝试过使用磁盘/内存/CPU菜单强制终止进程。我还试着在bash中用 pkill -9 -f spring 我还尝试了第三章末尾方框3.4中的建议 $ ps aux | grep spring ubuntu 11419 0.0 0.0 10548 852 pts/1 S+19:22 0:00 gr

我正在使用Cloud9IDE阅读第6章Michael Hartl教程[www.railstutorial.org/book],由于内存限制,服务器已停止运行。我使用的是512MB内存附带的免费层。我尝试过使用磁盘/内存/CPU菜单强制终止进程。我还试着在bash中用

pkill -9 -f spring
我还尝试了第三章末尾方框3.4中的建议

$ ps aux | grep spring
ubuntu 11419 0.0 0.0 10548 852 pts/1 S+19:22 0:00 grep--color=auto-spring

$ kill -9 11419
bash: kill: (11419) - No such process

任何人都有任何指示

在执行ps aux | grep spring之后运行的进程实际上是grep找到了自己(正如您在名称中看到的grep)。似乎没有正在运行的spring进程


对于Rails教程工作区,您应该已经收到768MB的ram,如果您写入Cloud9支持,它们将为您提供一些额外的交换空间,这样您就不会再遇到任何超出内存限制的问题。(我为Cloud9工作,这将很快在所有工作区实现)

不幸的是,这不是最好的提问地点。首先,读一下这篇文章。第二,尽管Cloud9为教程预先打包了rails,但我建议使用Koding,在那里您可以获得3GB的空间(启动工作区后为2.5)和1GB的RAM。它还使用Ubuntu虚拟机。如果你感兴趣,我可以(无耻地)发布我的推荐链接。谢谢你,但这是一个相当小的应用程序,不应该占用那么多空间。我还看到过其他问题,这些问题涉及占用所有内存的流氓spring进程。如果杀了他们不起作用有什么原因,我会很困惑!