...
CATALINA_OPTS="-Xmx768m -XX:MaxMetaspaceSize=256256m"
Windows
- Download the Apache Tomcat 8 or later 32-bit/64-bit Windows Service Installer from
http://tomcat.apache.org/ - Run the installer. Select the Service Startup option during installation.
- After installation, open the Tomcat configuration controls from the system tray.
- For Java Options, set the maximum size of the Metaspace using
-XX:MaxMetaspaceSize=256m
(Java Options are separated by new lines, not spaces) and set the maximum heap size to 768 MB.
...