Translated message

A translation of this page exists in English.

JBoss Fuse と A-MQ で GC ログと -XX:+HeapDumpOnOutOfMemoryError を有効化する方法

Solution Unverified - Updated -

Issue

  • JBoss Fuse と JBoss A-MQ でタイムスタンプに基づく GC ログを生成できません。

  • "$KARAF_HOME/bin/setenv" スクリプト内に、以下の "KARAF_OPTS" が追加されています。

#
# The following section shows the possible configuration options for the default
# karaf scripts
#
# export JAVA_MIN_MEM # Minimum memory for the JVM
# export JAVA_MAX_MEM # Maximum memory for the JVM
# export JAVA_PERM_MEM # Minimum perm memory for the JVM
# export JAVA_MAX_PERM_MEM # Maximum memory for the JVM
# export KARAF_HOME # Karaf home folder
# export KARAF_DATA # Karaf data folder
# export KARAF_BASE # Karaf base folder
# export KARAF_OPTS # Additional available Karaf options

export KARAF_OPTS="-verbose:gc -Xloggc:data/gc.log.'date+%Y%m%d%H%M%S' -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError
  • JBoss Fuse の起動および停止時に、コンソールに以下のエラーが表示されます。
./stop: KARAF_OPTS=-verbose:gc -Xloggc:data/gc.log.'date+%Y%m%d%H%M%S' -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError: is not an identifier

Environment

  • Red Hat JBoss A-MQ
    • 6.x
  • Red Hat JBoss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content