and then enabling authentication with this command :
apigee-service edge-message-processor change_jmx_auth -u theUser -p thePassword -e y
The service restarts normally, everything is up, but JMX remains accessible without authentication.
So, I tried to change “jmxremote.authenticate” value at “true”.
Then the service crashes at the restart. I can see these traces in /opt/apigee/var/log/edge-message-processor/edge-message-processor.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Error: Password file not found: /opt/jdk1.8.0_202-x86_64/jre/lib/management/jmxremote.password
sun.management.AgentConfigurationError
at sun.management.jmxremote.ConnectorBootstrap.checkPasswordFile(ConnectorBootstrap.java:563)
at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:426)
at sun.management.Agent.startAgent(Agent.java:262)
at sun.management.Agent.startAgent(Agent.java:452)
What am I doing wrong ?
What is the right combination of parameters to enable JMX Authentication ?
Many thanks for sharing this @ylesyuk. I also could not get the following command mentioned on the documentation to work on OPDK v4.18.05 for enabling JMX on an Message Processor. The problem was that even after executing below command I was able to connect to JMX server without specifying credentials:
apigee-service edge-message-processor change_jmx_auth -e y -u username -p password
Later, I tried steps suggested by you and it worked. Thanks again!