How to enable JMX port for Kafka

How to enable JMX port for Kafka

You need to enable JMX port to install the Kafka monitoring plugin successfully.

To enable it, find the following code block in the kafka-server-start.sh script:
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G"
fi

Below the aforementioned code block, paste the following lines:

export KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999"
export JMX_PORT=9999

Restart the Kafka Broker service after making the above changes.
    • Related Articles

    • Install the Net-SNMP package in Windows for SNMP-based plugins (iDRAC and HP iLO)

      Installing the Net-SNMP package is an essential prerequisite for configuring SNMP-based plugins like Dell iDRAC and HP iLO. Follow the steps below to install the Net-SNMP package, set the path of Net-SNMP, and test SNMP walk. Download and install the ...
    • Troubleshoot "[Errno 111] Connection refused" error for RabbitMQ plugins

      When installing the RabbitMQ plugin, you may encounter the following error: urlopen error [Errno 111] Connection refused: This error usually occurs when the plugin tries to connect with the RabbitMQ server but is unable to establish a connection. ...
    • How to configure the NGINX status page for monitoring NGINX performance

      The NGINX plugin uses the NGINX status page to pull the performance metrics of the NGINX server. You may encounter the following errors while installing the NGINX plugin integration: Error_code : HTTP Error 404: This error usually indicates that the ...
    • How to enable or disable anomaly alerts

      Understanding alerts In Site24x7, there are two different types of alerts in anomaly detection: Status change alert: Triggered when there is a change in the monitor status, such as Trouble, Critical, or Down. Anomaly alert: Triggered when irregular ...
    • Troubleshoot connection errors in the MySQL plugin

      When configuring the MySQL plugin, you may encounter the following errors: Error : Connection Error - This error typically indicates that there is a problem establishing a connection to the database. Sometimes, this message is supplemented with an ...