Stopping Java collectors

Use this information to stop collectors written in Java™.

You stop a Java collector by going to the Java collector bin directory at $NCHOME/precision/collectors/javaCollectors/bin and issuing a command-line interface command. A Java collector can be stopped on a local machine or on a remote machine by issuing this command. Issue the following command to stop a Java collector (note that the command is entered on one line; options are explained in Table 1):
shutdown_collector.sh -port port_number -host host_name
Table 1. Explanation of command-line options

Option

Explanation

-port port_number

Required: port on which the collector to be shut down is running.

-host host_name

Optional: hostname of the server on which the collector to be shut down is running. Default value is localhost.

Example: stopping a Java collector running on the local server on port 8080

To stop a Java collector running on the local server on port 8080, perform the following steps:
  1. Go to the following directory:
    $NCHOME/precision/collectors/javaCollectors/bin
  2. Run the following command:
    shutdown_collector.sh –port 8080