db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "DerbyJMXQuickStart" by JohnHEmbretsen
Date Fri, 18 Apr 2008 09:38:12 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by JohnHEmbretsen:
http://wiki.apache.org/db-derby/DerbyJMXQuickStart

The comment on the change is:
Added troubleshooting info

------------------------------------------------------------------------------
  
  as the JMX client was accessing the `VersionString` attribute of the `VersionMBean` for
derby.jar. In this example, JMX user authentication was disabled, hence `<no principals>`.
  
+ === Troubleshooting JMX connection issues ===
+ 
+ If you experience problems connecting "remotely" to an MBean server using JMX (see examples
of such connections below), getting some tracing information may be helpful. Sun's JMX implementation
uses the java.util.logging API to log JMX traces. For example, in order to trace SSL connection
issues, set the system property `java.util.logging.config.file`, e.g
+ {{{
+ java -Djava.util.logging.config.file=logging.properties MyJmxClient
+ }}}
+ With JConsole, you a separate logging window will appear if you specify
+ {{{
+ -J-Djava.util.logging.config.file=logging.properties
+ }}}
+ upon [#JConsoleAccess JConsole startup].
+ 
+ The `logging.properties` file specifies log handlers and logging levels, for example:
+ {{{
+ handlers = java.util.logging.ConsoleHandler
+ .level = INFO
+ 
+ java.util.logging.ConsoleHandler.level = FINEST
+ java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+ 
+  // Level FINEST is suitable for diagnosing SSL-related JMX remote connection issues.
+ javax.management.level = FINEST
+ javax.management.remote.level = FINEST
+ }}}
+ 
+ See also [http://blogs.sun.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole
this blog entry] for further hints and tips.
+ 
  
  [[Anchor(JConsoleAccess)]]
  == Using JConsole to access Derby's MBeans ==

Mime
View raw message