How to completely disable the JMX interface for java applications

391 Views Asked by At

Is there a (JVM-vendor agnostic) way to disable the JMX / RMI interface so no one can access it via jConsole or other tools?

If not, is there a way to restrict the access (also JVM-vendor agnostic).

I can limit the tcp connections to zero with -Dsun.rmi.transport.tcp.maxConnectionThreads=0. But this is probably not a good idea since it is discouraged to use.

0

There are 0 best solutions below