Skip to content

Instantly share code, notes, and snippets.

@elcascarudo-dev
Last active July 14, 2021 20:10
Show Gist options
  • Save elcascarudo-dev/374bf053d3d05be5ddcd43cb92c68fcf to your computer and use it in GitHub Desktop.
Save elcascarudo-dev/374bf053d3d05be5ddcd43cb92c68fcf to your computer and use it in GitHub Desktop.
Obtener versión de Tomcat
1.- Obtener versión Java instalado
# alternatives --config java
Hay 2 programas que proporcionan 'java'.
Selección Comando
-----------------------------------------------
3 /opt/jdk1.7.0_80/bin/java
+ 4 /usr/java/jdk1.7.0_80/bin/java
2.- Obtener versión Tomcat
en el directorio /usr/share/tomcat/lib
# /usr/java/jdk1.7.0_80/bin/java -cp catalina.jar org.apache.catalina.util.ServerInfo
Salida:
Server version: Apache Tomcat/6.0.24
Server built: February 20 2017 1727
Server number: 6.0.24.0
OS Name: Linux
OS Version: 2.6.32-573.3.1.el6.x86_64
Architecture: amd64
JVM Version: 1.7.0_80-b15
JVM Vendor: Oracle Corporation
-----------------------------------------------------------------------------------------------------------------------
Si el tomcat no esta instalado y se ejecuta directo desde el directorio descomprimido se puede visualizar desde el archivo:
./version.sh
@elcascarudo-dev
Copy link
Author

validar configuración por defecto java

java -XX:+PrintCommandLineFlags -version

-XX:InitialHeapSize=496631808 -XX:MaxHeapSize=7946108928 -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseParallelGC 
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment