CATALINA_OPTS 在 Tomcat 中是如何工作的? [英] How does CATALINA_OPTS works in Tomcat?

查看:85
本文介绍了CATALINA_OPTS 在 Tomcat 中是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇CATALINA_OPTS在Apache Tomcat的后台是如何工作的?是的,我知道它在 Tomcat 的启动和运行时执行,我在其中添加了一些供我的程序使用的参数,即使我长时间使用它,也将它添加到我的 VM 参数中,但不确定它是如何真正运行的.

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.

例如,不能将 Web.xml 中说的那些参数设置为上下文初始化参数吗?

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

推荐答案

它们只是 Tomcat 启动脚本在启动时传递给 Java 运行时可执行文件的命令行选项.您无法在运行时更改它们,因为服务器已经在运行.

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.

这篇关于CATALINA_OPTS 在 Tomcat 中是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆