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 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.