This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Using JMX and JConsole to change logging levels on the fly - problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Using JMX and JConsole to change logging levels on the fly - problem" Watch "Using JMX and JConsole to change logging levels on the fly - problem" New topic
Author

Using JMX and JConsole to change logging levels on the fly - problem

Shane Burgel
Ranch Hand

Joined: Sep 09, 2003
Posts: 47
I'm trying to implement the solution described here

I have everything configured to where I can see my log changing methods in the JConsole, but when I try to run one of them, I get an error that it can't find that class that contains the methods ("Log4jMBean" as described in the description linked above)

I already had to augment the path of JConsole to include the jms, groovy, and asm jars in order to get this far.

I'm not sure where to go from here.




[Thumbnail for error.JPG]

Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1430

RMI requires a SecurityManager.
You need to specify a security policy when starting up your application.

More info in this tutorial:

http://download.oracle.com/javase/tutorial/rmi/running.html


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Shane Burgel
Ranch Hand

Joined: Sep 09, 2003
Posts: 47
Ok I tried that and I still got the same error. Do you need to register a security manager for JConsole somehow?

Also in the case of the permission file, do you just specify the package that your code is in?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Using JMX and JConsole to change logging levels on the fly - problem
 
Similar Threads
Where should I put the applet?
Question about performance analyzing with jConsole
Source code
using jconsole
JVM heap size usage tracking?