Child pages
  • Developing

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Just like Java, the default Maven configuration may not be suitable for development. As such, you should set the MAVEN_OPTS environment variable, with the same value as JAVA_OPTS.

If you're running embedded Tomcat with Maven, you need to set the MAVEN_OPTS variable as such:

Code Block
languagetext
titleMAVEN_OPTS
-Xms4g -Xmx8g -XX:MetaspaceSize=256m -verbose:gc -Djava.awt.headless=true -XX:+UseG1GC -XX:+UseStringDeduplication -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

This will set the initial heap size to 4GB, maximum heap size to 8GB, initial metaspace size to 256MB (to prevent full GC collections on startup), ensure the application runs in headless mode, enable the G1 Garbage Collector. The last flag is required for some legacy applications, see 

Jira
serverFenixEdu JIRA
columnskey,summary,type,created,updated,assignee,reporter,priority,status,resolution
serverId4731d9a1-2830-3e4a-87ac-7427a397e68b
keyACDM-472
.

MySQL/MariaDB

 

Hardware

This section contains some guidelines regarding the best hardware choices for developing FenixEdu applications.

...