英文:
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文件进行更改时,这种情况也会发生。
我阅读了一些关于虚拟机选项的内容,但无法理解足够的信息来进行任何更改。
英文:
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.
答案1
得分: 3
检查您的IntelliJ内存设置。如果内存不足,请增加内存。
转到 Help -> 点击 Change Memory Settings
在弹出窗口中增加内存。
点击 Save and Restart
英文:
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
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论