Skip to content

Custom VM Args

Martin Lippert edited this page Mar 15, 2019 · 2 revisions

Passing specific VM arguments to the language server process (new in 4.2.0)

When using the Spring Tools 4 on top of Eclipse, you can now specify and pass custom VM arguments to the language server process. In order to do that, add an additional system property at the end of your eclipse.ini or SpringToolSuite4.ini file. For example:

-Dboot.ls.custom.vmargs=-Xmx3G to pass the argument -Xmx3G to the language server process.

You can also specify more than one argument, for example:

-Dboot.ls.custom.vmargs=-Xmx3048m,-Xdebug,-Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n

This sets the max heap size to 3048m and various debug options.

Usually you don't need to specify any VM arguments for that language server process, but it opens up a lot of possibilities for analyzing and debugging issues - or to change the settings in case that is needed for other reasons.

Clone this wiki locally