...
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 | ||||
---|---|---|---|---|
| ||||
-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 | ||||||||
---|---|---|---|---|---|---|---|---|
|
MySQL/MariaDB
Hardware
This section contains some guidelines regarding the best hardware choices for developing FenixEdu applications.
...