Help us shape the future of Go! Take the 2026 Go Developer Survey

tomcat

package
v1.300074.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 4 Imported by: 0

README

Tomcat Process Detector

Detects and classifies Tomcat processes running on the system.

[!WARNING] This is meant to be used as a sub-detector of the Java Process Detector and will result in incomplete metadata results if used on its own.

Overview

The Tomcat detector identifies Tomcat instances by searching for:

  • CATALINA_BASE: Runtime configuration directory (per-instance, preferred)
  • CATALINA_HOME: Installation directory (commonly shared, fallback)

It checks both system properties and environment variables in the following priority order:

  1. Catalina Base System Property (-Dcatalina.base)
  2. Catalina Base Environment Variable (CATALINA_BASE)
  3. Catalina Home System Property (-Dcatalina.home)
  4. Catalina Home Environment Variable (CATALINA_HOME)

The detected directory is used as the metadata name.

Sample Metadata Result
{
  "categories": ["TOMCAT"],
  "name": "/opt/tomcat/instance1"
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDetector

func NewDetector(logger *slog.Logger) detector.ProcessDetector

NewDetector creates a new process detector that identifies Apache Tomcat instances. This detector is meant to be used as a sub-detector of the Java detector.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL