当前位置:网站首页>idea卡顿且报错:UI was frozen for xxxxx ms问题解决
idea卡顿且报错:UI was frozen for xxxxx ms问题解决
2022-07-17 09:49:00 【zeekling】
现象
idea 启动并且点击某个菜单之后一点反应也没有,点击关闭也关闭不掉,查看日志报错如下:
* bin 2021-04-30 00:20:31,777 [ 317987] WARN - .diagnostic.PerformanceWatcher - UI was frozen for 5750ms, details saved to /home/zeek/.cache/JetBrains/IntelliJIdea2020.3/log/threadDumps-freeze-20210430-002031-IU-203.7148.57-RandomAccessFile.readBytes-5sec
2021-04-30 00:20:45,194 [ 331404] WARN - s.ui.configuration.SdkDetector - No version is returned for detected SDK IDEA JDK at /home/zeek/software/idea-IU-203.7148.57
2021-04-30 00:22:05,304 [ 411514] WARN - ystem.impl.ActionPopupMenuImpl - 1174ms to fill popup menu ProjectViewPopup
2021-04-30 00:22:33,250 [ 439460] WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting
2021-04-30 00:22:33,426 [ 439636] WARN - ConfigurableExtensionPointUtil - use other group instead of unexpected one: build.android
2021-04-30 00:22:44,580 [ 450790] WARN - .diagnostic.PerformanceWatcher - UI was frozen for 12256ms, details saved to /home/zeek/.cache/JetBrains/IntelliJIdea2020.3/log/threadDumps-freeze-20210430-002237-IU-203.7148.57-ShowSettingsAction.perform-12sec
在最开始的时候就比较严重,具体原因也不知道是啥。
处理步骤
首先因为我用的是LInux操作系统,jdk默认安装的是openjdk 11,一般来讲openjdk没有oracle jdk稳定,并且openjdk 11 太新了,于是九江操作系统的默认jdk换成了oracle jdk 9版本。
* bin java -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
其次,由于idea 默认给程序使用的内存是700m左右,内存不足也可能导致idea 出现上面情况。于是将idea的运行内存调整为2G,配置文件为idea安装目录/bin/idea64.vmoptions
,配置内容如下(只修改了-Xms 和-Xmx的大小):
-Xms512m
-Xmx2048m
-XX:ReservedCodeCacheSize=512m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-Dsun.tools.attach.tmp.only=true
最后在禁用掉自己平时用不到的一些插件。
经过上面三个步骤之后,idea卡顿的现象就不是那么明显了(肉眼不可见)。
其他原因
经过我自己使用过程中发现,Linux版的搜狗输入法可能会导致整个Linux操作系统都比较卡顿,idea里面使用搜狗输入法更卡,建议大家不要在Linux下面使用搜狗输入法。可以使用ibus-rime。
另外之前使用的kali Linux操作系统,用起来没有debian好使,可能是debian安装的软件啥的比较少的原因。
边栏推荐
- L2-029 特立独行的幸福
- Collation of RPA related knowledge points
- QR decomposition for matrix inversion -- C engineering implementation
- android 数据库左连接查询
- [Hongke] Introduction to genicam protocol
- Etcd database source code analysis - initialize etcdserver structure
- Redis
- 银河麒麟v10-arm版离线安装Portainer
- OpenCV模板
- Jsp+Ajax+Servlet+Mysql实现增删改查(一)
猜你喜欢
随机推荐
置顶随笔分类
Left connection query of Android database
Programming in the novel [serial 11] the moon bends in the yuan universe
Yanrong technology was selected as Beijing's "specialized and innovative" in 2022 to lead hybrid cloud file storage
AnyControl Demo演示
Unity 使用一张贴图来控制材质主贴图的透明度
OpenCV模板
Latest fruit flstudio20.9 low version upgrade high version tutorial
L2-029 independent happiness
Log desensitization - Reference
Classification of top essays
[troubleshooting] common problems and solutions when installing MySQL in Windows system
Two structures ifconf and ifreq
mysql 初始化修改密码问题
Classificateur knn
LDA分类器
QT serial communication
QR decomposition for matrix inversion -- C engineering implementation
SharePoint access brief notes
Code Capriccio: question skimming record (under update)