I wouldn’t ask this here unless I had exhausted the Tomcat reference guide and online searching had produced nadda.
Tomcat has a bin/catalina.sh file where you can specify JVM options to start up with. For purposes outside the scope of this question, I’m wondering if Tomcat supports external configuration of these Java options outside catalina.sh.
Thus, I’d be able to write some file, say, new-jvm-opts.xml, and restart Tomcat, and have it use the options set up in this file (overriding any specified in catalina.sh).
The catalina.sh script allows for Environment Variables to be already set on its startup. If you want to get JVM Opts in there, I think you just set them into whatever Environment your tomcat is starting in. Its documented in catalina.sh as “Environment Variable Prerequisites”.
The ones I think you are interested in are either
or