Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are default JVM options used by grails run-app

Tags:

grails

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.

like image 791
JBT Avatar asked Sep 03 '13 19:09

JBT


People also ask

What is Java VM options?

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 .

How do you run the grails app?

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.

How can I tell what version of grails I have Windows?

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.


1 Answers

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.

like image 134
dmahapatro Avatar answered Nov 15 '22 09:11

dmahapatro