How to add JVM Options to Fuse or A-MQ container in Windows Envionment ?
Issue
- How to specify the java options for the Fuse installation running on Windows environment?
- We referred to the article https://access.redhat.com/solutions/536573 and added the following option:
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.