idea loading

idea loading

最近idea总是无故莫名卡死,有时候随便点一下就卡死了

给官方发了一份邮件,目前解决了这个问题。

官方说明

线程转储可以帮助识别IDE性能问题时,锁定和用户界面没有响应。
转储应该正好在此刻采取IDE时没有反应,并会记录线程堆栈。在记录多个线程用1-2秒的间隔转储可也对这个问题的分析非常有用的。

Windows
Use the .bat file named for the product and located in IDE_HOMEbin directory (idea.bat, phpstorm.bat, webstorm.bat, pycharm.bat, rubymine,bat).
Press Ctrl+Break (NOT Ctrl+C) in the console to take a thread dump. Dumps can be long, running with output redirection to a file is recommended, like:
idea.bat > output.txt
You can record several dumps in the same file by pressing Ctrl+Break multiple times.
Mac OS X
Browse to the /Applications/<PRODUCT>.app/Contents/MacOS/<product> executable inFinder, in the context menu choose Open With, Terminal. To get a thread dump pressCtrl+ in the Terminal window.
Linux, Solaris, Generic Unix
Start the IDE from the terminal using the .sh script in the product bin directory. Start another terminal, find the IDE java process ID using jps, ps or your other favorite process manager. Send the QUIT signal to the IDE process:
kill -QUIT <PID>
Thread dump should be printed into the first terminal window from where IDE was started. Use process output to a file redirection to capture long dumps

 

中文翻译版    

Windows

使用以产品命名并位于IDE_HOMEbin目录下的.bat文件(idea.bat, phpstorm.bat, webstorm.bat, pycharm.bat, rubymine,bat)。  

在控制台上按Ctrl+Break(不是Ctrl+C)获取线程转储。 转储可能很长,建议将输出重定向到文件运行,如:  

idea.bat > output.txt  

通过多次按Ctrl+Break,可以在同一个文件中记录多个转储。  

Mac OS X  

idea loading

浏览到/Applications/<PRODUCT>。 app/Contents/MacOS/<product> executable inFinder,在上下文菜单中选择Open With, Terminal。 要获得一个线程转储按ctrl +在终端窗口。  

Linux, Solaris,通用Unix  

在终端上使用product bin目录下的.sh脚本启动IDE。 启动另一个终端,使用jps、ps或您喜欢的其他进程管理器找到IDE java进程ID。 发送QUIT信号到IDE进程:  

杀死退出< PID >  

线程转储应该打印到从IDE开始的第一个终端窗口中。 使用进程输出到文件重定向来捕获长转储  


除了上述办法,还可以这样

打开idea安装的文件夹,在 bin 目录下 有一个  idea.exe文件下面的  .vmoptions   双击打开

修改Xms的值为1024m  和 2048m  保存重新启动就好了

但是电脑内存在 8G 以下的不建议修改哦,这个改的是idea的运行内存,1024为启动最低占用1G内存,2048是最高占用2G内存

今天的文章
idea loading分享到此就结束了,感谢您的阅读。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/127751.html

(0)
编程小号编程小号
上一篇 2024-09-15 23:11
下一篇 2024-09-15

相关推荐