According to this page:
http://grails.github.io/grails-howtos/en/performanceTuning.html#s3, the grails run-app
command will provide some options to the JVM itself, such as -XX:MaxPermSize
. So, my question is, what options are provided by the grails run-app
command by default? The reason that I am asking this is that I am doing some benchmarking in the development mode, so I want to make sure that I am actually changing something when I provide JVM options through GRAILS_OPTS.
Thank you in advance.
JVM Options Overview There are three types of options that you can add to your JVM, standard, non-standard and advanced options. If you apply an advanced option, you always precede the option with -XX: . Similarly if you're using a non-standard option, you'll use -X .
Running a Grails Application Using run-appGo to the application directory. For example, go to the as-install /grails/samples/helloworld directory. Run the grails run-app command. The grails run-app command starts the Enterprise Server in the background and runs the application in one step.
Metadata regarding a project in Grails is kept in application. properties . Within this file you will find the version of Grails used for the project under the key app. grails.
You can get the detail in startGrails.bat
present in
GRAILS_HOME/bin/
Default setting for GRAILS_OPTS
(if not provided by user) looks like
GRAILS_OPTS=-server -Xmx768M -Xms64M
-XX:PermSize=32m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8
which gets overriden based on the command used. In case of run-app
I think the default is used unless otherwise specified by user as environment variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With