背景
因为上周我自己的Mac本屏幕的线路被烧了,所以拿去返厂维修了,这段时间我只能将目光瞄向家里闲置的一台小米笔记本pro,是去年的最新款,windows系统用来写代码实在不是那么顺手,就索性直接装了黑苹果,装的还算完美,蓝牙和wifi适配的都挺好的,但由于CPU不行,所以打开idea巨卡无比。

解决
后来在网上找了些方案,最后是调好了,就总结一下
- 先设置idea的JVM配置,具体位置在
help->Custom VM Options

主要修改Xms和Xmx这两个,具体设置大小根据自己电脑配置而定,当然也可以参考我的
Xms 是指设定程序启动时占用内存大小。一般来讲,大点,程序会启动的快一点,但是也可能会导致机器暂时间变慢。
Xmx 是指设定程序运行期间最大可占用的内存大小。如果程序运行需要占用更多的内存,超出了这个设置值,就会抛出OutOfMemory异常。
-Xms2048m
-Xmx2048m
-XX:MaxPermSize=512m
-XX:+UseCodeCacheFlushing
-XX:ReservedCodeCacheSize=256m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf
-Xverify:none
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof- 如果还是会卡可以关闭部分代码检查,减少性能消耗,具体位置在
preferences->Editor->Inspections,取消无用的勾选,点击Apply,点击OK

- 接下来就可以愉快的写代码啦
下载看看
I drop a comment whenever I like a article on a site or I have something to valuable to contribute to the discussion. Usually it is a result of the fire displayed in the article I looked at. And on this article Freewind主题音乐播放器(老王重制版) - 冷文学习者. I was actually excited enough to post a comment :-) I actually do have a few questions for you if it's okay. Could it be just me or do some of these responses appear like left by brain dead people? :-P And, if you are posting at other places, I would like to keep up with everything new you have to post. Could you list the complete urls of your communal sites like your linkedin profile, Facebook page or twitter feed? Feel free to surf to my blog post :: https://bonusstats.com/en/bonus-7signs
Thanks for finally talking about >Freewind 1.5 更新 - 冷文学习者
下载看看
我要回复一下课件