2016年8月16日 星期二

Can not open Android Studio? bad UseParallelGC

One day, I want to increase my Android Studio performance, I add some parameters in studio64.exe.vmoptions

-Xms2048m

-Xmx4096m

-XX:MaxPermSize=512m

-XX:ReservedCodeCacheSize=768m

-XX:+UseConcMarkSweepGC

-XX:SoftRefLRUPolicyMSPerMB=50

-XX:+UseParallelGC

Then, I can not open Android Studio again!


So! what magic parameter make it wrong?
I google the message for that but all about JAVA_HOME environment issue.

Finally, I found that is ONE bad parameter on that:

-XX:+UseParallelGC

Remove it and restart Android Studio, it work again!