What are the default JVM options used by grails run-app

According to this page: http://grails.imtqy.com/grails-howtos/en/performanceTuning.html#s3 , the grails run-app will provide some parameters to the JVM itself, for example -XX:MaxPermSize . So my question is: what are the default options provided by the grails run-app ? The reason I'm asking about this is because I do benchmarking in development mode, so I want to make sure that I really change something when I provide JVM parameters through GRAILS_OPTS.

Thanks in advance.

+4
source share
1 answer

You can get the details in startGrails.bat in

GRAILS_HOME/bin/

The default value for GRAILS_OPTS (if not specified by the user) looks like

 GRAILS_OPTS=-server -Xmx768M -Xms64M -XX:PermSize=32m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 

which receives an excess based on the command used. In the case of run-app I think that the default value is used, unless otherwise specified by the user as an environment variable.

+10
source

Source: https://habr.com/ru/post/1500368/


All Articles