为什么从版本 12 升级后 IntelliJ 13 IDEA 这么慢? [英] Why is IntelliJ 13 IDEA so slow after upgrading from version 12?

查看:28
本文介绍了为什么从版本 12 升级后 IntelliJ 13 IDEA 这么慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然使用 IntelliJ 13 终极版一周,但它似乎真的很慢.

While using IntelliJ 13 ultimate edition for a week, it just seems really slow.

首先,整个 IDE 每隔一段时间就会停止一秒钟左右.Java 编辑器的自动完成与 12 版本相比真的很慢.

First of all, the whole IDE stops for a second or so every once in a while. The Java editor's auto complete is really slow compared to 12 version.

除了使用 Dracula 主题之外,我没有对默认设置进行任何更改.

I have not changed anything from the default settings other than using a Dracula theme.

看来这不是我自己的问题.许多人建议将堆大小设置为高于默认值,或清除缓存,但我没有检查或测试这些建议.我是否需要更改某些设置以提高新版本的性能?

It seems that this is not a problem of my own. Many people suggested setting the heap size higher than default, or clearing the cache, but I have not checked or tested on these suggestion. Do I need to change some setting to improve the new version's performance?

推荐答案

从 12 升级后,我在 IntelliJ 13 中遇到了同样的缓慢问题.对我有用的是编辑 bin 文件夹中的 idea64.vmoptions 并将最大堆设置为 8 GB(512 MB)并将 Max PermGen 设置为至少 1GB(300MB).示例如下:

I had the same problem with slowness in IntelliJ 13 after upgrading from 12. What worked for me was editing the idea64.vmoptions in the bin folder and setting the max heap to 8 GB (was 512 MB) and the Max PermGen to at least 1GB (was 300MB).Example below:

-Xms128m
-Xmx8192m
-XX:MaxPermSize=1024m

重新启动后速度要快得多.

Upon restart it was much faster.

IntelliJ 2020 在 Mac 上可以追溯到 2017 年/Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

For IntelliJ 2020 going back to 2017 on Mac /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

在 Mac 上,此文件位于以下路径:

On a Mac, this file is located in this path:

对于 Mac 上的 IntelliJ 14 或 15/Applications/IntelliJ IDEA 14.app/Contents/bin/idea.vmoptions

For IntelliJ 14 or 15 on Mac /Applications/IntelliJ IDEA 14.app/Contents/bin/idea.vmoptions

对于 Mac 上的 IntelliJ 13/Users/yourusername/Library/Preferences/IntelliJIdea13/idea.vmoptions

For IntelliJ 13 on Mac /Users/yourusername/Library/Preferences/IntelliJIdea13/idea.vmoptions

IntelliJ 的更新程序(自 2017 年起)似乎会回滚此更改,因此您可能需要在更新后重新应用它.

IntelliJ's updater (since 2017) seems to roll this change back, so you may need to re-apply it after updating.

在 Ubuntu Linux 上,此文件位于相对于安装目录的以下路径中:

On Ubuntu Linux, this file is located in this path relative to the install directory:

idea-IU-135.475/bin/idea64.vmoptions

和 2016.2:

 ~/.IdeaIC2016.2/idea64.vmoptions

在 Windows 10(此处显示社区版)上,这些文件位于:

On Windows 10 (Community edition shown here) these files are located in:

C:Program Files (x86)JetBrainsIntelliJ IDEA Community Edition 2016.1.3inidea64.exe.vmoptions

这篇关于为什么从版本 12 升级后 IntelliJ 13 IDEA 这么慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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