Skip to content

Commit

Permalink
Fixed #986 - Turn off ActiveMQ JMX By Default
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwilmer committed Oct 11, 2021
1 parent 4277c24 commit 8dea889
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ private EnvConstants() {

public static final String LOG_FILE_PATTERN_LAYOUT = "log.file.pattern.layout";

public static final String JMX_ENABLED = "jmx.enabled";

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* Licensed to JumpMind Inc under one or more contributor
* license agreements. See the NOTICE file distributed
* with this work for additional information regarding
* copyright ownership. JumpMind Inc licenses this file
Expand Down Expand Up @@ -523,7 +522,10 @@ Service brokerService() {
if (brokerService == null) {
try {
BrokerService broker = new BrokerService();
broker.setPersistent(false);
broker.setPersistent(false);
if (env.getProperty(EnvConstants.JMX_ENABLED,"false").equalsIgnoreCase("false")) {
broker.setUseJmx(false);
}
broker.getSystemUsage().getMemoryUsage().setLimit(10*1024*10);
broker.start();
brokerService = broker;
Expand Down
1 change: 1 addition & 0 deletions metl-ui/src/main/resources/metl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ execution.retention.time.ms.cancelled=60000
log.to.console.enabled=true
log.to.file.enabled=true
table.prefix=metl
jmx.enabled=false
#log.file=

0 comments on commit 8dea889

Please sign in to comment.