Herewith, for a high performance or any other custom configurations, the default options can be manually changed.
1. In order to provide all the preferred Java options at once, the variables.conf file can be utilized.
Depending on a particular application server you are working with, the exact location may vary:
- Tomcat, TomEE – /opt/tomcat/conf/variables.conf
- Jetty – /opt/jetty/etc/variables.conf
- Spring Boot – /opt/shared/conf/variables.conf
- GlassFish – /opt/glassfish/glassfish/domains/domain1/config/variables.conf
- Payara – /opt/payara/glassfish/domains/domain1/config/variables.conf
- WildFly – /opt/wildfly/conf/variables.conf

If needed, you can redefine the main memory options via container variables.
2. Don’t forget to Restart nodes to apply changes.
That’s it! Now, your application is running with your custom Java options.