What is the tomcat catalina_pid variable used for?



  • Environment variable: CATALINA_PID
    Setting: optional

    From Apache Tomcat documentation:
    https://tomcat.apache.org/tomcat-9.0-doc/RUNNING.txt

    Another frequently used variable is CATALINA_PID (on *nix only). It
    specifies the location of the file where process id of the forked Tomcat
    java process will be written. This setting is optional. It will enable the
    following features:

    • better protection against duplicate start attempts and
    • allows forceful termination of Tomcat process when it does not react to
      the standard shutdown command.


© Lightnetics 2019