phpstorm

以前はPhpStormの使用可能メモリを増やすときにインストール先フォルダのPhpStorm64.exe.vmoptions を変更していたが、いつの間にか メニューの Help > Edit Custom VM Options から修正できるようになったようだ。

-Xms128m → 512m
-Xmx750m → 2048m
にしてみた。

phpstorm.vmoptions
-Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops

カスタムのvmoptionsパスはココらしい。

Custom VM Options path
Windows: C:\Users\myid\.PhpStorm2016.2\phpstorm64.exe.vmoptions OS X: /Users/myid/Library/Preferences/PhpStorm2016.2/phpstorm.vmoptions (~/Library/Preferences/PhpStorm2016.2/phpstorm.vmoptions)

IntelliJ IDEA,PhpStorm,WebStormとかも同じようだ。

Increasing Memory Heap

Tuning PhpStorm

Tuning WebStorm

Tuning AppCode

参考)-Xms,-Xmxオプションのドキュメント
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

Java
Launches a Java application.

-Xmssize
Sets the initial size (in bytes) of the heap. This value must be a multiple of 1024 and greater than 1 MB. Append the letter k or K to indicate kilobytes, m or M to indicate megabytes, g or G to indicate gigabytes.

The following examples show how to set the size of allocated memory to 6 MB using various units:

-Xms6291456
-Xms6144k
-Xms6m
If you do not set this option, then the initial size will be set as the sum of the sizes allocated for the old generation and the young generation. The initial size of the heap for the young generation can be set using the -Xmn option or the -XX:NewSize option.

-Xmxsize
Specifies the maximum size (in bytes) of the memory allocation pool in bytes. This value must be a multiple of 1024 and greater than 2 MB. Append the letter k or K to indicate kilobytes, m or M to indicate megabytes, g or G to indicate gigabytes. The default value is chosen at runtime based on system configuration. For server deployments, -Xms and -Xmx are often set to the same value. See the section "Ergonomics" in Java SE HotSpot Virtual Machine Garbage Collection Tuning Guide at http://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/index.html.

The following examples show how to set the maximum allowed size of allocated memory to 80 MB using various units:

-Xmx83886080
-Xmx81920k
-Xmx80m
The -Xmx option is equivalent to -XX:MaxHeapSize.