Do "phpstorm64.vmoptions" in ~/config/ (1) override/append, or (2) completely replace the defaults in <IDE_HOME>/bin/?

I've got

PhpStorm 2017.3.3 EAP
Build #PS-173.4301.7, built on December 27, 2017
JRE: 1.8.0_152-release-1024-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.14.12-2.g3cf399e-default

installed.

at

https://www.jetbrains.com/help/phpstorm/tuning-phpstorm.html#config-directory

it states

Configuring JVM options
...
The default options used to run PhpStorm are specified in the following file:
...
<IDE_HOME>/bin/phpstorm.vmoptions
...

and at

https://www.jetbrains.com/help/phpstorm/tuning-phpstorm.html#configure-jvm-options


further

Configuration directory
...
It is also the default location for user-defined VM options and platform properties files.
...


If I select

    Help:Edit Custom VM Options...

*only* the params file

    ~/.PhpStorm2017.3/config/phpstorm64.vmoptions

is opened for editing.

*NO* default parameter values are shown from

    <IDE_HOME>/bin/phpstorm64.vmoptions

OTOH, if

    ~/.PhpStorm2017.3/config/phpstorm64.vmoptions

does *NOT* exist, select of

    Help:Edit Custom VM Options...

*DIRECTLY* opens

    <IDE_HOME>/bin/phpstorm64.vmoptions

for editing -- *NOT* a copy.

What is the design/intention here?

Does


    ~/.PhpStorm2017.3/config/phpstorm64.vmoptions

 

  • (1) override/append default parameters in

or

  • (2) replace the entire default file


    <IDE_HOME>/bin/phpstorm64.vmoptions

??

 

13 comments

config/phpstorm64.vmoptions, when it's there, is used instead of bin/phpstorm64.vmoptions.

Help | Edit Custom VM Options... never opens the bin/phpstorm64.vmoptions. If config/phpstorm64.vmoptions doesn't yet exist, you are prompted to create this file when choosing Edit Custom VM Options... action:


Note that you can always check the -Djb.vmOptionsFile value in your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files) to see what vmoptions file is being used

0

@Elena Pogorelova

> Help | Edit Custom VM Options... never opens the bin/phpstorm64.vmoptions. If config/phpstorm64.vmoptions doesn't yet exist, you are prompted to create this file when choosing Edit Custom VM Options... action:


If I have no "config/*vmoptions"

ls -al ~/.PhpStorm2017.3/config/*vmoptions /usr/local/phpstorm/bin/*vmoptions
ls: cannot access '/home/aj/.PhpStorm2017.3/config/*vmoptions': No such file or directory
-rw-r--r-- 1 aj users 359 Jan 9 16:08 /usr/local/phpstorm/bin/phpstorm64.vmoptions
-rw-r--r-- 1 aj users 367 Dec 27 07:34 /usr/local/phpstorm/bin/phpstorm.vmoptions

When I

    Help | Edit Custom VM Options...

it does NOT prompt. It directly opens

    bin/phpstorm64.vmoptions

SCREENSHOT -> https://i.imgur.com/iRHGWpJ.png

and idea.log shows

    ...  -Djb.vmOptionsFile=/usr/local/phpstorm/bin/phpstorm64.vmoptions ...

0

weird... Do you have $PHPSTORM_VM_OPTIONS env variable set? What launcher do you use to start PHPStorm - phpstorm.sh, desktop entry, cmd launcher?

All launchers look for the *.vmoptions file at following locations, in order of preference:

-     At the path specified in $PHPSTORM_VM_OPTIONS environment variable
-     Alongside installation directory
-     In a config directory (~/.PhpStorm2017.3/config)
-     In an installation directory (/usr/local/phpstorm/bin).


Invoking a "Help | Edit Custom VM Options" action normally opens an existing *.vmoptions file in all cases except #4. In the latter case, PHPStorm should suggest creating a copy (as modifying file in bin/ is not always possible and can break package signature and further incremental updates)

0

> Do you have $PHPSTORM_VM_OPTIONS env variable set?

No

> What launcher do you use to start PHPStorm - phpstorm.sh, desktop entry, cmd launcher?

bin/phpstorm.sh

 

0

can't recreate. Please can you provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)? Don't paste it here, place it on some file server and publish a link

0

Hmm... in log,

-Djb.vmOptionsFile=/home/aj/.PhpStorm2017.3/config/phpstorm64.vmoptions
0

That's right.  After I put it back so I can actually get work done.

If you want specific conditions logged, then you'll have to say so.

0

Shut down PHPStorm, delete config/phpstorm64.vmoptions, restart, open Help | Edit Custom VM Options... - what is the result? If the file from bin/ is opened, provide the log

0

@Elena Pogorelova

  • > Shut down PHPStorm
  • > delete config/phpstorm64.vmoptions
  • > restart
  • > open Help | Edit Custom VM Options...

done

> what is the result?

in GUI, file:

<IDE_HOME>/bin/phpstorm64.vmoptions

is opened.

and in 'idea.log'

... -Djb.vmOptionsFile=/usr/local/phpstorm/bin/phpstorm64.vmoptions ...

> If the file from bin/ is opened, provide the log

https://paste.fedoraproject.org/paste/kRo7NSuRPI8jp4MwgjFZ1A/raw 

 

0
This paste either does not exist or has been deleted
0

Odd. Try it again now ...

0

I see, thanks. it opens file from bin/ because <IDE_HOME> is a symlink

0

Please sign in to leave a comment.