我该如何设置IntelliJ 14的内存? [英] How should I set the memory for IntelliJ 14?

查看:437
本文介绍了我该如何设置IntelliJ 14的内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将IntelliJ升级到14.0.3。但是总会有一个Out Of Memory对话框,要求我设置内存。

I just upgraded my IntelliJ to 14.0.3. But there's always a Out Of Memory dialog popped up to ask me to set the memory.

以下是我的设置:

Following is my settings:

我认为这已经足够了。但是对话框会不时显示,有时,我不得不关闭它。

I thought it's enough. But the dialog shows from time to time, and sometimes, it's no responding that I have to shutdown it.

如何为IntelliJ 14设置它?有什么想法?

How should set this for IntelliJ 14? Any ideas?

推荐答案

打开Intellij IDE的 vmoptions 文件

Open Intellij IDE's vmoptions file

适用于Mac用户

帮助|编辑自定义VM选项...

图书馆>偏好>想法< YourVersion> > idea.vmoptions

对于Window(32位)用户

C:\程序文件(x86)\ JetBrains \IntelliJ IDEA < your_version> \bin\idea.exe.vmoptions

C:\Program Files (x86)\JetBrains\IntelliJ IDEA <your_version>\bin\idea.exe.vmoptions

对于Window(64位)用户

C:\Program Files(x86)\ JetBrains\IntelliJ IDEA < your_version> \ bin \ idea64.exe.vmoptions

C:\Program Files (x86)\JetBrains\IntelliJ IDEA <your_version>\bin\idea64.exe.vmoptions

并设置它记忆如你所愿。以下是 2GB 的样本设置

and setup it's memory as you wish. Below is sample settings for 2GB

-Xms128m
-Xmx2048m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops

希望这有帮助。

这篇关于我该如何设置IntelliJ 14的内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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