Spring
Spring

Reputation: 11835

How does CATALINA_OPTS works in Tomcat?

I am curious how does CATALINA_OPTS work in the background in Apache Tomcat? yes I know it executes on start and run of Tomcat and I add some parameters to be used by my program in it, And even I use it for long time add it to my VM parameters but not sure how it operates really.

For example isn't that possible to set those parameters say in Web.xml as context init parameters?

Upvotes: 2

Views: 4326

Answers (2)

Jayan
Jayan

Reputation: 18459

Extending Zutty's answser a bit. A running instances of Tomcat could be tweaked with JMX. .

Upvotes: 2

Zutty
Zutty

Reputation: 5377

They're just command-line options that the Tomcat startup scripts pass to the Java runtime executable when it starts. You can't change them at runtime since the server is already running.

Upvotes: 7

Related Questions