jconsole & security manager

In document "http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html"

there's the sentence in the last line:

"If your application runs a security manager, then additional permissions are required in the security permissions file."

So, which permissions are required?

Especially - I'm running an app with security manager, monitoring my mbeans works great, but the jconsole's "thread" is disabled and "memory" view does not work properly?

I gave all libs below $JAVA_HOME "AllPermission"

[534 byte] By [gernotpa] at [2007-10-2 0:01:17]
# 1
What error/exception are you getting?try giving "socket permission" also on the port which JConsole connects the VM to.-BJ
Bimalesha at 2007-7-15 15:55:50 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

I am not sure that any permissions are needed by default. Certainly I was able to run a program that just blocks with Thread.sleep(Long.MAX_VALUE) and either -Dcom.sun.management.jmxremote or -Dcom.sun.management.jmxremote.port=9999, plus -Djava.security.manager, and jconsole could connect fine in both cases. It also worked with or without SSL.

You could try running your app with -Djava.security.debug=access,failure

which will spit out a huge amount of information, but buried in that information it will show you if an operation is refused because of permissions, and what permission is missing from where.

emcmanusa at 2007-7-15 15:55:50 > top of Java-index,Java HotSpot Virtual Machine,Specifications...