How to add JVM Options to Fuse or A-MQ container in Windows Envionment ?

Solution Verified - Updated -

Issue

SET KARAF_OPTS="-verbose:gc -Xloggc:D:/PATH/gc.log."date +%Y%m%d%H%M%S" -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:/DUMP"
  • But above causes the following error on startup:
C:\jboss-fuse-full-6.1.0.redhat-379\bin>fuse.bat
Error: Could not find or load main class +mHS -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:/DUMP

Environment

  • Red Hat JBoss Fuse
    • 6.1.0
  • Red Hat JBoss A-MQ
    • 6.1.0

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