Search code examples
javajvmphpstorm

How do I upgrade from JavaVM 32bit to JavaVM64bit


I have a 64bit operating system with phpStorm 9.0.2 installed.
I get out of memory errors and it seems like JVM32bit might not help the cause.

How can I upgrade my JVM32bit version to JVM64bit?
Is it just as simple as downloading a 64bit version and installing it or are there any other extra steps to take to do this correctly?

OS Win 7 64bit


Solution

  • You can run PhpStorm even if you have no Java installed on your computer as on Windows it comes bundled with own 32-bit JRE which will be used by default ignoring your system-wide Java (if you have one).

    That's why "uninstall 32-bit Java and just install 64-bit one instead" is not enough (as in some cases you simply have no system-wide Java installed on your computer).


    1. Download and install 64-bit JDK (yes, it has to be JDK and not just JRE)
    2. Create IDEA_JDK_64 environment variable and point it to JDK root folder. For example:

      enter image description here

    3. Use 64-bit PhpStorm's executable (PhpStorm64.exe) instead of 32-bit (PhpStorm.exe).

    The above works just fine for me.

    If anything -- please refer to official support article.