Skip to content

Commit

Permalink
Remove daemon thread change, add default for ssl in reference.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
elahrvivaz committed Mar 2, 2022
1 parent 8939391 commit e2bb461
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/main/java/io/logz/jmx2graphite/Jmx2Graphite.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@ public class Jmx2Graphite {
private final MBeanClient client;

public Jmx2Graphite(Jmx2GraphiteConfiguration conf) {
this(conf, false);
}

public Jmx2Graphite(Jmx2GraphiteConfiguration conf, boolean runAsDaemon) {
this.conf = conf;

ThreadFactory threadFactory = new ThreadFactoryBuilder()
.setNameFormat("Jmx2GraphiteSender-%d")
.setDaemon(runAsDaemon)
.build();
this.taskScheduler = new ScheduledThreadPoolExecutor(1, threadFactory);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static void premain(String agentArgument, Instrumentation instrumentation

Jmx2GraphiteConfiguration jmx2GraphiteConfiguration = new Jmx2GraphiteConfiguration(finalConfig);

Jmx2Graphite main = new Jmx2Graphite(jmx2GraphiteConfiguration, true);
Jmx2Graphite main = new Jmx2Graphite(jmx2GraphiteConfiguration);
logger.info("Initiated new java agent based Jmx2Graphite instance");

try {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ graphite {
port = 2004
connectTimeout = 10
socketTimeout = 5
ssl = false
}

0 comments on commit e2bb461

Please sign in to comment.