jetbrains-ide-performance icon indicating copy to clipboard operation
jetbrains-ide-performance copied to clipboard

phpstorm 2019.2 - vmoptions

Open millsoft opened this issue 6 years ago • 3 comments

Hey,

I just upgraded to 2019.2 and a lot of vmoptions are not working anymore. These prevented me to launch phpstorm.

I removed all these problematic options, now the list looks like that:

-Xms1024m
-Xmx2048m
-Xss64m
-XX:ReservedCodeCacheSize=512m
-XX:+UseCompressedOops
-XX:NewRatio=2
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=250
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=1024m
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
-XX:SurvivorRatio=8
-XX:+UseCodeCacheFlushing
-XX:+AggressiveOpts
-XX:+CMSClassUnloadingEnabled
-XX:+CMSParallelRemarkEnabled
-XX:CMSInitiatingOccupancyFraction=65
-XX:+CMSScavengeBeforeRemark
-XX:+UseCMSInitiatingOccupancyOnly
-Xlog:class+unload=off
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
-XX:+DoEscapeAnalysis
-XX:+UnlockExperimentalVMOptions
-XX:LargePageSizeInBytes=256m
-XX:+DisableExplicitGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+PrintGCDetails
-XX:+PrintFlagsFinal
-XX:+HeapDumpOnOutOfMemoryError
-XX:+UseAdaptiveGCBoundary
-XX:CompileThreshold=10000
-XX:+OptimizeStringConcat
-XX:+UnlockDiagnosticVMOptions
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:-OmitStackTraceInFastThrow
-Xverify:none
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
-Dide.no.platform.update=true

no custom stuff from me, just the list from this repository. If you want, update the file in this repo.

millsoft avatar Jul 30 '19 17:07 millsoft

Using ScriptedAlchemy/jetbrains-ide-performance configuration, it will run normally in 2021.2, without any problems you mentioned

CongAn avatar Apr 21 '21 02:04 CongAn

@millsoft @CongAn please sned a PR if these options do not work anymore, happy to accept updates

ScriptedAlchemy avatar Mar 02 '22 21:03 ScriptedAlchemy

@CongAn bump

ScriptedAlchemy avatar Mar 17 '22 08:03 ScriptedAlchemy