IntelliJ 在调试前冻结约 30 秒 [英] IntelliJ freezes for about 30 seconds before debugging
问题描述
当我尝试调试我的 Java 应用程序时,IDE 冻结了大约 30 秒并显示以下消息:完成,保存缓存"
when i try to debug my java app the IDE freezes for about 30 seconds with the message: "Finished, saving caches"
解冻后一切正常.每次都会发生.
After it unfreezes all works fine. It happens every time.
当我只运行(而不是调试)时,它不会冻结.
When i only run (not debug) it does not freeze.
我尝试了什么:
- 我更改了系统上的 JDK.
- 我更改了 IntelliJ 版本.
- 我改用 IntelliJ Ultimate - 试用版.
- 使 IDE 的缓存无效.
- 类似问题
- 我还发现给定的消息只存在于这个代码区域 - github-project 所以我更改了 JVM 选项以给 InteliJ 更多内存.
- I changed the JDK on system.
- I changed the IntelliJ version.
- I change to IntelliJ Ultimate - trial.
- Invalidating the IDE's cache.
- Similar problem
- I also figured out that the given message exists only it this area of code - github-project so i changed the JVM options to give InteliJ more ram.
InteliJ 构建 IC-141.1010.3.
InteliJ build IC-141.1010.3.
当我尝试在其他 IDE 中调试时,它工作正常,只有 InteliJ 卡住了...
When i try to debug in other IDE's it works fine, only InteliJ gets stuck...
我也向 jetbrains 提交了一张票,但我知道 StackOverflow 的力量:)
I submitted a ticket to jetbrains too, but i know the power of StackOverflow :)
我有 MacBookPro 2015 和 JDK 1.8
I have a MacBookPro 2015 and JDK 1.8
推荐答案
如果还有其他人遇到这个问题,我在 IntelliJ 板上找到了这个相关问题:https://youtrack.jetbrains.com/issue/IDEA-157303
If anyone else is still having this problem, I found this related issue on the IntelliJ board: https://youtrack.jetbrains.com/issue/IDEA-157303
问题似乎与解析主机名有关.推荐的解决方法是在您的 /etc/hosts
文件中包含以下行:
It seems the problem is related to resolving hostnames. The recommended workaround is to include the following line in your /etc/hosts
file:
127.0.0.1 localhost <your hostname goes here>.local
对于 IPv6 解析,相同:
And for IPv6 resolving, the same:
::1 localhost <your hostname goes here>.local
这篇关于IntelliJ 在调试前冻结约 30 秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!