由于 JVM 堆空间已用完而使守护进程过期 [英] Expiring Daemon because JVM heap space is exhausted

查看:70
本文介绍了由于 JVM 堆空间已用完而使守护进程过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将 Android Studio 更新到 3.5 Beta 1 并且我得到了

I just updated the Android Studio to 3.5 Beta 1 and I'm getting

由于 JVM 堆空间耗尽,守护进程到期

Expiring Daemon because JVM heap space is exhausted

构建运行时的消息.此外,构建需要更多时间才能完成.有没有人对此有任何想法?

message while the build is running. Also, the build is taking more time to complete. Does anyone have any idea regarding this?

推荐答案

这可以通过增加为项目配置的最大堆大小来解决.

This can be fixed by increasing the configured max heap size for the project.

通过IDE:

将以下几行添加到 gradle.properties 文件中.可根据 RAM 可用性配置以下内存大小

Add the below lines into the gradle.properties file. Below memory size can be configured based on the RAM availability

org.gradle.daemon=true
org.gradle.jvmargs=-Xmx2560m

通过图形用户界面:

在设置中,搜索'Memory Settings'并根据系统增加IDE max heap sizeDaemon max heap sizeRAM 可用性.

In the Settings, search for 'Memory Settings' and increase the IDE max heap size and Daemon max heap size as per the system RAM availability.

这篇关于由于 JVM 堆空间已用完而使守护进程过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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