Question

I know we can set/add a property to tomcat catalina opts by using set or export command. But how do I get or print all the properties set in CATALINA_OPTS as well as their values? I checked online but couldn't really find a way to print the values. Thanks!

Was it helpful?

Solution

In case if you want to view all environment variables...

... in Windows, type set in command prompt.

... in Mac / Linux, type env in Terminal.

OTHER TIPS

I wouldn't normally suggested editing the standard Tomcat scripts but in this case it is probably the simplest approach.

Look in catalina.[sh|bat] for where CATALINA_BASE and friends are echo'd to the console and add a line to echo CATALINA_OPTS.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top