Skip to content

Instantly share code, notes, and snippets.

@luukverhoeven
Last active July 18, 2025 16:23
Show Gist options
  • Save luukverhoeven/bd48b92c9970e1a8db08ffc2b17e94d1 to your computer and use it in GitHub Desktop.
Save luukverhoeven/bd48b92c9970e1a8db08ffc2b17e94d1 to your computer and use it in GitHub Desktop.
My Phpstorm vmoptions + idea.properties
-ea
-server
-Xms512m
-Xmx2g
-XX:ParallelGCThreads=8
-XX:PermSize=350m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:LargePageSizeInBytes=256m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:-OmitStackTraceInFastThrow
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops
-XX:+UseStringCache
-XX:+UseFastAccessorMethods
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Dawt.useSystemAAFontSettings=lcd
-Dawt.java2d.opengl=true
-Dsun.java2d.xrender=true
@luukverhoeven
Copy link
Author

30.03.2024 - M1

phpstorm.vmoptions

# Enabled on 13.02.2024, 21:20
# Increase the maximum heap size to 12GB, given your ample RAM, for large projects
-Xmx12g

# Set the initial heap size to 6GB to give PhpStorm a strong start
-Xms6g

# Increase the Metaspace size for class metadata to handle more classes without frequent resizing
-XX:MetaspaceSize=1g

# Use the Garbage-First (G1) collector for better heap management
-XX:+UseG1GC
-XX:G1HeapRegionSize=16M
-XX:MaxGCPauseMillis=100
-XX:ParallelGCThreads=8
-XX:ConcGCThreads=2
-XX:InitiatingHeapOccupancyPercent=45

# Use performance counters for profiling
-XX:+UsePerfData

# Increase compiler threads to benefit from the M1 Max's higher core count
-XX:CICompilerCount=4

# Reduce JIT compilation delay
-DjvmCI.compilerIdleDelay=50

# Set the thread stack size to optimize memory use and performance
-Xss2m

# Enable/disable various features for optimization on M1
-Dsun.java2d.uiScale.enabled=false
-Dide.no.platform.update=true
-Dide.mac.file.chooser.native=true
-Dapple.awt.application.name=PhpStorm

idea.properties

#editor.zero.latency.typing=true
#performance.watcher.unresponsive.interval.ms=0
#idea.max.intellisense.filesize=3500
idea.fatal.error.notification=disabled

# Enabled on 13.02.2024, 21:20
idea.cycle.buffer.size=2048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment