How do I find what Java version Tomcat6 is using?

后端 未结 9 968
面向向阳花
面向向阳花 2020-12-13 17:40

Is there a OS command to find what Java version Tomcat6 is using? I need to use a Perl (including system()) command.

I using Linux. Ubuntu and CentOS

Is the

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 17:57

    Once you have started tomcat simply run the following command at a terminal prompt:

    ps -ef | grep tomcat

    This will show the process details and indicate which JVM (by folder location) is running tomcat.

提交回复
热议问题