tomcat config java option
https://stackoverflow.com/questions/53230473/set-a-basic-java-option-on-tomcat
https://docs.oracle.com/cd/E40518_01/integrator.311/integrator_install/src/cli_ldi_server_config.html
Follow Tomcat configuration recommendations
Update setenv.bat
with adding the property to JAVA_OPTS
It is recommended that you create a file named setenv.bat
(Windows) or setenv.sh
(Linux) and
place it in the Tomcat bin directory
.
With this file (which is run by the catalina.bat and catalina.sh scripts),
you can change the following Tomcat environment settings with the JAVA_OPTS
variable
The following is an example of a setenv.bat
file:
set "JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:MaxPermSize=256m -server"
set "JAVA_OPTS=%JAVA_OPTS% --add-opens java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED"