Java execution in command line fails on JMX error Java execution in command line fails on JMX error kubernetes kubernetes

Java execution in command line fails on JMX error


Seems like there's another process on that port. If it is not an important one, kill the process bia fuser, for example:

sudo fuser -k 9110/tcp

You could also check what's listening there before killing it:

lsof -i :9110

When the port is clean, try again. Another option is to change the rmi port number to something different than 9110, as jmx doesn't require specific port numbers to work (don't forget changing the port on the endpoint as well).