kriver
kriver

Reputation: 1626

how to get/print CATALINA_OPTS

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!

Upvotes: 2

Views: 9550

Answers (2)

Mark Thomas
Mark Thomas

Reputation: 16660

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.

Upvotes: 1

limc
limc

Reputation: 40176

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

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

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

Upvotes: 5

Related Questions