加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

scala – sbt没有在亚马逊ec2微实例上工作

发布时间:2020-12-16 18:53:01 所属栏目:安全 来源:网络整理
导读:我正在尝试在亚马逊ec2微实例上使用sbt,但是当我执行sbt命令时我遇到了这个错误. mkdir pruebacd pruebasbtThere is insufficient memory for the Java Runtime Environment to continue.Native memory allocation (malloc) failed to allocate 715849728 by
我正在尝试在亚马逊ec2微实例上使用sbt,但是当我执行sbt命令时我遇到了这个错误.

mkdir prueba
cd prueba
sbt

There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 715849728 bytes for committing reserved memory

有任何想法吗?

先感谢您!

解决方法

你必须使用一个限制所用内存的开关运行sbt,使其小于机器上的可用内存.

我没有编辑文件,而是使用sbt -mem 256运行sbt,例如将-Xmx和-Xms运行到256MB.工作良好.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读