即使在关闭 android studio 之后,Gradle 仍将 java 作为一个进程 [英] Gradle leaves java as a process even after closing android studio

查看:21
本文介绍了即使在关闭 android studio 之后,Gradle 仍将 java 作为一个进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 mac 系统上,每当我关闭 android studio 时,它都会让 java 进程和 java 进程继续运行并继续占用 ram 内存.如果您看到 java 进程占用了 1gb 的 ram,那么拥有只有 4gb 的 mac 有时会很痛苦

On mac system whenever i close android studio it leaves java process and java process keep running and keep hogging the ram memory.Having a mac with only 4gb is sometime painful if you see that java process is taking upto 1gb of ram

android studio 中是否有任何选项,以便在我退出与其相关的所有进程或任何可以运行以进行清理的命令后立即关闭?

is there any option in android studio so that as soon as i quit all the process related to it should be closed or any command that i can run for cleanup?

推荐答案

来自 文档:

守护进程将在 3 小时不活动后自动终止.如果您希望在此之前停止守护进程,您可以通过操作系统终止该进程或运行 gradle --stop 命令.--stop 开关使 Gradle 请求所有正在运行的守护进程(与用于运行命令的 Gradle 版本相同)终止自己.

Daemon processes will automatically terminate themselves after 3 hours of inactivity. If you wish to stop a Daemon process before this, you can either kill the process via your operating system or run the gradle --stop command. The --stop switch causes Gradle to request that all running Daemon processes, of the same Gradle version used to run the command, terminate themselves.

这篇关于即使在关闭 android studio 之后,Gradle 仍将 java 作为一个进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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