Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

VisualVM を使用して JBoss EAP 6 に接続する

Solution Verified - Updated -

Issue

  • visualvm を使用して jmx に接続することができません。
  • visualvm コネクターおよび jmx コネクターを使用して、JBoss インスタンスにリモートで接続する方法。
  • standalone.conf で以下の JAVA_OPTIONS を設定しても、VisualVM で JBoss EAP6 に接続することができません。
JAVA_OPTS="$JAVA_OPTS  -Dcom.sun.management.jmxremote.port=9002"
JAVA_OPTS="$JAVA_OPTS  -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTS="$JAVA_OPTS  -Dcom.sun.management.jmxremote.ssl=false"

この JAVA_OPTS を使用して JBoss EAP 6 を起動すると以下の例外が発生します。

./standalone.sh 
=========================================================================
  JBoss Bootstrap Environment
  JBOSS_HOME:/home/userone/JBoss/jboss-eap-6.0
  JAVA:/home/rmartine/Development/jdk1.6.0_30/bin/java
  JAVA_OPTS:-server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9002 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false

=========================================================================

WARNING:Failed to load the specified log manager class org.jboss.logmanager.LogManager
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.jboss.as.server.Main.main(Main.java:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.modules.Module.run(Module.java:260)
    at org.jboss.modules.Main.main(Main.java:291)
Caused by: java.lang.IllegalStateException:The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
    at org.jboss.logmanager.Logger.getLogger(Logger.java:60)
    at org.jboss.logmanager.log4j.BridgeRepositorySelector.<clinit>(BridgeRepositorySelector.java:42)

  • VisualVM を使用して EAP 6 を監視するにはどうしたら良いですか?
  • JBoss を Windows サービスとして実行すると、JVisualvm を使用することができません。
  • Jboss EAP 6 で Visual VM を実行するにはどうしたら良いですか?
  • Jboss 6.3 EAP で Visual VMを実行する手順が必要です。
  • Jboss 6.3 EAP における Visual VM

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.