Intellij Idea Community经常冻结,Maven项目在读取pom.xml时卡住很长时间。

huangapple go评论84阅读模式
英文:

Intellij Idea Community Constantly Freezes and Maven projects stuck on reading pom.xml for a very long time

问题

我刚刚在我的工作电脑(虚拟机)上安装了Intellij Idea社区版,但它经常会在每隔几分钟时冻结超过一分钟。另外,当我终于可以开始工作并加载项目时,当我打开一个Maven项目时,读取pom.xml文件的阶段可能需要20-30分钟。每当我对pom.xml文件进行更改时,这种情况也会发生。

我阅读了一些关于虚拟机选项的内容,但无法理解足够的信息来进行任何更改。

点击此处查看Idea日志的Google Drive链接

英文:

I have just installed Intellij Idea Community on my work computer (virtual machine) and it constantly freezes for more than a minute at times every few minutes. Additionally, when I can finally do some work and load, and when I open a maven project, the reading pom.xml stage can take 20-30 minutes. This also happens anytime I make changes to my pom.xml file.

I read a bit about the vm options but couldn't understand enough of it to make any changes.

Google Drive Link to idea logs

答案1

得分: 3

检查您的IntelliJ内存设置。如果内存不足,请增加内存。

转到 Help -> 点击 Change Memory Settings

在弹出窗口中增加内存。

点击 Save and Restart

Intellij Idea Community经常冻结,Maven项目在读取pom.xml时卡住很长时间。

Intellij Idea Community经常冻结,Maven项目在读取pom.xml时卡住很长时间。

英文:

Check your intellij memory settings. Increase it if it is low.

Go to Help -> click on Change Memory Settings

In Popup increase the memory.

Click Save and Restart

Intellij Idea Community经常冻结,Maven项目在读取pom.xml时卡住很长时间。

Intellij Idea Community经常冻结,Maven项目在读取pom.xml时卡住很长时间。

答案2

得分: 2

我通过在IntelliJ中设置代理解决了Maven的问题。起初我没有想到这一点,因为我们使用的其他IDE都没有设置代理。

至于频繁的卡顿问题,其中大部分是由于Maven的扫描引起的,由于我现在不再遇到这个问题,所以我对于卡顿问题也不需要太担心。

英文:

I fixed the maven problem by setting a proxy in intellij. This did not occur to me at first as none of the other IDEs that we use have proxies set.

As for the constant freezing, a majority of it was caused due to the maven scans and since I dont have that problem anymore, I don't need to worry too much about the freezes either

huangapple
  • 本文由 发表于 2020年9月29日 23:47:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/64123126.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定