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

    • How to enable JMX port for ActiveMQ

      You need to enable JMX port to install the ActiveMQ plugin successfully. The JMX connection should be enabled in the Apache ActiveMQ installation folder. To enable it with password protection follow the ActiveMQ Documentation. To enable it without ...
    • Troubleshoot "[Errno 111] Connection refused" error when installing Tomcat plugins

      When installing Tomcat plugins, you may encounter the following error: We failed to reach a server. Reason: [Errno 111] Connection refused: This error indicates that your client is unable to establish a connection to the Tomcat Manager URL, but the ...
    • Verifying the NetFlow port of an On-Premise Poller

      For NetFlow analysis, you need to configure your devices to export flows to Site24x7 On-Premise Poller, which is the NetFlow collector. The On-Premise Poller will be listening to the particular port to receive flows, which is why a proper port number ...
    • Plugins

      A plugin is a piece of software that acts as an add-on. Plugins are a great way to customize and measure attributes and keep track of data that matters the most. Check out our out of the box plugins and custom plugins for both Windows and Linux. Know ...
    • How to increase the Script Execution Timeout value for plugins

      If a plugin's script execution time exceeds the Script Execution Timeout value configured in Site24x7, it could result in errors during plugin installation or disrupt the polling for existing plugin monitors. In such cases, you need to extend the ...