阴谋集团的安装准则内存不足 [英] Cabal install criterion out of memory

查看:94
本文介绍了阴谋集团的安装准则内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在具有768MB内存和512MB交换空间的容器上运行.我不能增加这两个. cabal install criterion总是给予

I'm running on a container with 768MB ram and 512 MB swap space. I can't increase either of this. cabal install criterion always gives

Failed during the building phase.
The exception was: ExitFailure (-9)
This may be due to an out-of-memory condition.

Compiling Criterion.Types期间.有什么办法可以解决这个问题,还是我必须在没有标准的情况下采取行动?

during Compiling Criterion.Types. Is there any way around this or do I have to make do without criterion?

推荐答案

在GHC上设置RTS标志以限制其内存使用量(--ghc-options="+RTS -M600M"),避免并行运行多个作业(-j1).

Set RTS flags on GHC to limit its memory usage (--ghc-options="+RTS -M600M") and avoid running multiple jobs in parallel (-j1).

这篇关于阴谋集团的安装准则内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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